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:
David Mudrak
2011-11-11 12:10:02 +01:00
parent 241d9463de
commit 6f19a2a98b
+1 -2
View File
@@ -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();