X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMagicWord.php;h=4b24a00d86cfe3eaa5690966bc84ce3a29c716f7;hb=0c8327466bebd44a9c0f60cd010307446b9ead63;hp=7decbee0ab5dfc498e3d963e12336a43ffcbe530;hpb=e054e34af8dcda9c454c8cb04caa0d55d0d3c5af;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MagicWord.php b/includes/MagicWord.php index 7decbee0ab..4b24a00d86 100644 --- a/includes/MagicWord.php +++ b/includes/MagicWord.php @@ -172,7 +172,6 @@ class MagicWord { 'directionmark', 'contentlanguage', 'numberofadmins', - 'numberofviews', 'cascadingsources', ); @@ -215,7 +214,6 @@ class MagicWord { 'localtimestamp' => 3600, 'pagesinnamespace' => 3600, 'numberofadmins' => 3600, - 'numberofviews' => 3600, 'numberingroup' => 3600, ); @@ -275,7 +273,7 @@ class MagicWord { static function getVariableIDs() { if ( !self::$mVariableIDsInitialised ) { # Get variable IDs - wfRunHooks( 'MagicWordwgVariableIDs', array( &self::$mVariableIDs ) ); + Hooks::run( 'MagicWordwgVariableIDs', array( &self::$mVariableIDs ) ); self::$mVariableIDsInitialised = true; } return self::$mVariableIDs; @@ -310,7 +308,7 @@ class MagicWord { */ static function getDoubleUnderscoreArray() { if ( is_null( self::$mDoubleUnderscoreArray ) ) { - wfRunHooks( 'GetDoubleUnderscoreIDs', array( &self::$mDoubleUnderscoreIDs ) ); + Hooks::run( 'GetDoubleUnderscoreIDs', array( &self::$mDoubleUnderscoreIDs ) ); self::$mDoubleUnderscoreArray = new MagicWordArray( self::$mDoubleUnderscoreIDs ); } return self::$mDoubleUnderscoreArray; @@ -754,6 +752,7 @@ class MagicWordArray { /** * Get a 2-d hashtable for this array + * @return array */ function getHash() { if ( is_null( $this->hash ) ) { @@ -775,6 +774,7 @@ class MagicWordArray { /** * Get the base regex + * @return array */ function getBaseRegex() { if ( is_null( $this->baseRegex ) ) { @@ -799,6 +799,7 @@ class MagicWordArray { /** * Get an unanchored regex that does not match parameters + * @return array */ function getRegex() { if ( is_null( $this->regex ) ) {