MDL-29108 Removing global variables where they are not needed
Spotted by Sam during the review (17.1 and 17.3)
This commit is contained in:
@@ -438,7 +438,7 @@ abstract class gradingform_controller {
|
||||
* @return gradingform_instance
|
||||
*/
|
||||
public function create_instance($raterid, $itemid = null) {
|
||||
global $DB;
|
||||
|
||||
// first find if there is already an active instance for this itemid
|
||||
if ($itemid && $current = $this->get_current_instance($raterid, $itemid)) {
|
||||
return $this->get_instance($current->copy($raterid, $itemid));
|
||||
@@ -523,7 +523,6 @@ abstract class gradingform_controller {
|
||||
* @return array
|
||||
*/
|
||||
public static function sql_search_where($token) {
|
||||
global $DB;
|
||||
|
||||
$subsql = array();
|
||||
$params = array();
|
||||
|
||||
Reference in New Issue
Block a user