Ignore:
Timestamp:
May 2, 2016, 12:09:23 PM (3 years ago)
Author:
jrpelegrina
Message:

Updated to moodle 3.0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • moodle/trunk/fuentes/blog/locallib.php

    r136 r1331  
    350350    /**
    351351     * Function to add all context associations to an entry.
    352      * TODO : Remove $action in 2.9 (MDL-41330)
    353      *
    354      * @param string $action - This does nothing, do not use it. This is present only for Backward compatibility.
    355      */
    356     public function add_associations($action = null) {
    357 
    358         if (!empty($action)) {
    359             debugging('blog_entry->add_associations() does not accept any argument', DEBUG_DEVELOPER);
     352     *
     353     * @param string $unused This does nothing, do not use it.
     354     */
     355    public function add_associations($unused = null) {
     356
     357        if ($unused !== null) {
     358            debugging('Illegal argument used in blog_entry->add_associations()', DEBUG_DEVELOPER);
    360359        }
    361360
     
    373372    /**
    374373     * Add a single association for a blog entry
    375      * TODO : Remove $action in 2.9 (MDL-41330)
    376374     *
    377375     * @param int $contextid - id of context to associate with the blog entry.
    378      * @param string $action - This does nothing, do not use it. This is present only for Backward compatibility.
    379      */
    380     public function add_association($contextid, $action = null) {
     376     * @param string $unused This does nothing, do not use it.
     377     */
     378    public function add_association($contextid, $unused = null) {
    381379        global $DB;
    382380
    383         if (!empty($action)) {
    384             debugging('blog_entry->add_association() accepts only one argument', DEBUG_DEVELOPER);
     381        if ($unused !== null) {
     382            debugging('Illegal argument used in blog_entry->add_association()', DEBUG_DEVELOPER);
    385383        }
    386384
Note: See TracChangeset for help on using the changeset viewer.