X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryTokens.php;h=2e107acb88a6a4445316d29bfd33f6822538d89b;hb=aa21e125a34e8ca44e05d5dd96bb28562ec8e347;hp=279e8e304f4070418092a8db3ec222fb2bef6954;hpb=2610395f793a778ceb4955145d1ffd9f5eb6b2f7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryTokens.php b/includes/api/ApiQueryTokens.php index 279e8e304f..2e107acb88 100644 --- a/includes/api/ApiQueryTokens.php +++ b/includes/api/ApiQueryTokens.php @@ -55,7 +55,6 @@ class ApiQueryTokens extends ApiQueryBase { public static function getTokenTypeSalts() { static $salts = null; if ( !$salts ) { - wfProfileIn( __METHOD__ ); $salts = array( 'csrf' => '', 'watch' => 'watch', @@ -63,9 +62,8 @@ class ApiQueryTokens extends ApiQueryBase { 'rollback' => 'rollback', 'userrights' => 'userrights', ); - wfRunHooks( 'ApiQueryTokensRegisterTypes', array( &$salts ) ); + Hooks::run( 'ApiQueryTokensRegisterTypes', array( &$salts ) ); ksort( $salts ); - wfProfileOut( __METHOD__ ); } return $salts;