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