From cfed1268ef43006f5ccb8f059edb0dca8ea7a979 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Mon, 25 Jun 2012 14:26:54 +0800 Subject: [PATCH] MDL-33990 - yui2: remove 2 uncessary requirements We no longer use yui2 logger and connection in set_user_prefs --- lib/ajax/ajaxlib.php | 3 --- lib/outputrequirementslib.php | 1 - 2 files changed, 4 deletions(-) diff --git a/lib/ajax/ajaxlib.php b/lib/ajax/ajaxlib.php index 72eba29539a..4c298b54b59 100644 --- a/lib/ajax/ajaxlib.php +++ b/lib/ajax/ajaxlib.php @@ -36,9 +36,6 @@ function user_preference_allow_ajax_update($name, $paramtype) { global $USER, $PAGE; - // Make sure that the required JavaScript libraries are loaded. - $PAGE->requires->yui2_lib('connection'); - // Record in the session that this user_preference is allowed to updated remotely. $USER->ajax_updatable_user_prefs[$name] = $paramtype; } diff --git a/lib/outputrequirementslib.php b/lib/outputrequirementslib.php index 6ad4bead7e0..a50fcd254f4 100644 --- a/lib/outputrequirementslib.php +++ b/lib/outputrequirementslib.php @@ -326,7 +326,6 @@ class page_requirements_manager { ); if (debugging('', DEBUG_DEVELOPER)) { $this->M_cfg['developerdebug'] = true; - $this->yui2_lib('logger'); } // accessibility stuff