summaryrefslogtreecommitdiff
path: root/maintenance/findhooks.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2007-05-16 20:58:53 +0000
committerPierre Schmitz <pierre@archlinux.de>2007-05-16 20:58:53 +0000
commitcecb985bee3bdd252e1b8dc0bd500b37cd52be01 (patch)
tree17266aa237742640aabee7856f0202317a45d540 /maintenance/findhooks.php
parent0bac06c301f2a83edb0236e4c2434da16848d549 (diff)
Aktualisierung auf MediaWiki 1.10.0
Plugins angepasst und verbessert kleine Korrekturen am Design
Diffstat (limited to 'maintenance/findhooks.php')
-rw-r--r--maintenance/findhooks.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/maintenance/findhooks.php b/maintenance/findhooks.php
index 4f446f2b..0308ad13 100644
--- a/maintenance/findhooks.php
+++ b/maintenance/findhooks.php
@@ -7,8 +7,7 @@
* - hooks names in hooks.txt are at the beginning of a line and single quoted.
* - hooks names in code are the first parameter of wfRunHooks.
*
- * @package MediaWiki
- * @subpackage Maintenance
+ * @addtogroup Maintenance
*
* @author Ashar Voultoiz <hashar@altern.org>
* @copyright Copyright © Ashar voultoiz
@@ -33,6 +32,7 @@ $pathinc = $IP . '/includes/';
function getHooksFromDoc() {
global $doc;
$content = file_get_contents( $doc );
+ $m = array();
preg_match_all( "/\n'(.*?)'/", $content, $m);
return $m[1];
}
@@ -44,6 +44,7 @@ function getHooksFromDoc() {
*/
function getHooksFromFile( $file ) {
$content = file_get_contents( $file );
+ $m = array();
preg_match_all( "/wfRunHooks\(\s*\'(.*?)\'/", $content, $m);
return $m[1];
}