~ubuntu-branches/ubuntu/trusty/moodle/trusty

« back to all changes in this revision

Viewing changes to mod/assign/backup/moodle2/restore_assign_activity_task.class.php

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2014-01-21 13:40:52 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20140121134052-ym2qvsp2cd9vq0p6
Tags: 2.5.4-1
* New upstream release, fixing security issues:
  - MSA-14-0001 Config passwords visibility issue [CVE-2014-0008]
  - MSA-14-0002 Group constraints lacking in "login as" [CVE-2014-0009]
  - MSA-14-0003 CSRF vulnerability in profile fields [CVE-2014-0010]
* Move /var/lib/moodle directory into package.
* Revert back to bundled yui3. Unfortunately, version in Debian and
  of upstream are not compatible (closes: #735312).

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
        return $rules;
121
121
    }
122
122
 
 
123
    /**
 
124
     * Given a comment area, return the itemname that contains the itemid mappings.
 
125
     *
 
126
     * @param string $commentarea
 
127
     * @return string
 
128
     */
 
129
    public function get_comment_mapping_itemname($commentarea) {
 
130
        switch ($commentarea) {
 
131
            case 'submission_comments':
 
132
                $itemname = 'submission';
 
133
                break;
 
134
            default:
 
135
                $itemname = parent::get_comment_mapping_itemname($commentarea);
 
136
                break;
 
137
        }
 
138
 
 
139
        return $itemname;
 
140
    }
123
141
}