From 2aff6544d6222aba1e70719ac3cdc07ab935018e Mon Sep 17 00:00:00 2001 From: Krinkle Date: Fri, 12 Aug 2011 08:21:22 +0000 Subject: [PATCH] Reverting r93751 per r93751 CR. --- includes/OutputPage.php | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index b93e20a2ed..adfe20ed5f 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -440,22 +440,6 @@ class OutputPage extends ContextSource { $this->mModules = array_merge( $this->mModules, (array)$modules ); } - /** - * Remove one or more modules recognized by the resource loader. - * - * @param $modules Mixed: module name (string) or array of module names - */ - public function removeModules( $modules ) { - $this->mModules = array_diff( $this->mModules, (array)$modules ); - } - - /** - * Removes all modules for resource loader. - */ - public function resetModules() { - $this->mModules = array(); - } - /** * Get the list of module JS to include on this page * @@ -2599,7 +2583,7 @@ $templates } else { # @todo FIXME: This means that User:Me/Common.js doesn't load when previewing # User:Me/Vector.js, and vice versa (bug 26283) - + // We can't do $userScripts[] = 'user'; because the user module would end up // being wrapped in a closure, so load it raw like 'site' $scripts .= $this->makeResourceLoaderLink( 'user', ResourceLoaderModule::TYPE_SCRIPTS ); -- 2.20.1