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/completion/criteria/completion_criteria.php

    r136 r1331  
    169169
    170170        if (!isset($params['criteriatype']) || !isset($COMPLETION_CRITERIA_TYPES[$params['criteriatype']])) {
    171             error('invalidcriteriatype', 'completion');
     171            print_error('invalidcriteriatype', 'completion');
    172172        }
    173173
     
    234234
    235235    /**
     236     * Return pix_icon for display in reports.
     237     *
     238     * @param string $alt The alt text to use for the icon
     239     * @param array $attributes html attributes
     240     * @return pix_icon
     241     */
     242    public function get_icon($alt, array $attributes = null) {
     243        global $COMPLETION_CRITERIA_TYPES;
     244
     245        $criteriatype = $COMPLETION_CRITERIA_TYPES[$this->criteriatype];
     246        return new pix_icon('i/'.$criteriatype, $alt, 'moodle', $attributes);
     247    }
     248
     249    /**
    236250     * Return criteria status text for display in reports
    237251     *
Note: See TracChangeset for help on using the changeset viewer.