From 859bd8e70c6dc095d3515fe2a098b588bca3dbb7 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 12 Feb 2011 17:15:24 +0000 Subject: [PATCH] * Fix hook name * Update paths in findhooks script --- docs/hooks.txt | 4 ++-- maintenance/findhooks.php | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/hooks.txt b/docs/hooks.txt index dfa34fea60..2f79c83755 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1124,7 +1124,7 @@ $variableIDs: array of strings 'MakeGlobalVariablesScript': called right before Skin::makeVariablesScript is executed. Ideally, this hook should only be used to add variables that depend on the current page/request; static configuration should be added -through ResourceLoaderConfigVars instead. +through ResourceLoaderGetConfigVars instead. &$vars: variable (or multiple variables) to be added into the output of Skin::makeVariablesScript @@ -1388,7 +1388,7 @@ loader request or generating HTML output. 'RecentChange_save': called at the end of RecentChange::save() $recentChange: RecentChange object -'ResourceLoaderConfigVars': called at the end of +'ResourceLoaderGetConfigVars': called at the end of ResourceLoaderStartUpModule::getConfig(). Use this to export static configuration variables to JavaScript. Things that depend on the current page/request state must be added through MakeGlobalVariablesScript instead. diff --git a/maintenance/findhooks.php b/maintenance/findhooks.php index 28add4154f..ee007ce68c 100644 --- a/maintenance/findhooks.php +++ b/maintenance/findhooks.php @@ -63,14 +63,15 @@ class FindHooks extends Maintenance { $IP . '/includes/installer/', $IP . '/includes/parser/', $IP . '/includes/resourceloader/', + $IP . '/includes/revisiondelete/', $IP . '/includes/search/', $IP . '/includes/specials/', $IP . '/includes/upload/', $IP . '/languages/', $IP . '/maintenance/', - $IP . '/maintenance/tests/', - $IP . '/maintenance/tests/parser/', - $IP . '/maintenance/tests/phpunit/suites/', + $IP . '/tests/', + $IP . '/tests/parser/', + $IP . '/tests/phpunit/suites/', $IP . '/skins/', ); -- 2.20.1