X-Git-Url: https://git.heureux-cyclage.org/index.php?a=blobdiff_plain;f=includes%2Fcontent%2FAbstractContent.php;h=816572ca01aa734ab2c312536c7e9c94923ed892;hb=48db38da9308d9f7ce3702f675910b74e7c42929;hp=cb39fac57d7ffa97304ee92d41109ea81d4adcd9;hpb=668f5fd58793f8a1b122d9b466576f68566f833f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/AbstractContent.php b/includes/content/AbstractContent.php index cb39fac57d..816572ca01 100644 --- a/includes/content/AbstractContent.php +++ b/includes/content/AbstractContent.php @@ -446,7 +446,7 @@ abstract class AbstractContent implements Content { $lossy = ( $lossy === 'lossy' ); // string flag, convert to boolean for convenience $result = false; - wfRunHooks( 'ConvertContent', array( $this, $toModel, $lossy, &$result ) ); + Hooks::run( 'ConvertContent', array( $this, $toModel, $lossy, &$result ) ); return $result; } @@ -480,7 +480,7 @@ abstract class AbstractContent implements Content { $po = new ParserOutput(); - if ( wfRunHooks( 'ContentGetParserOutput', + if ( Hooks::run( 'ContentGetParserOutput', array( $this, $title, $revId, $options, $generateHtml, &$po ) ) ) { // Save and restore the old value, just in case something is reusing @@ -491,7 +491,7 @@ abstract class AbstractContent implements Content { $options->setRedirectTarget( $oldRedir ); } - wfRunHooks( 'ContentAlterParserOutput', array( $this, $title, $po ) ); + Hooks::run( 'ContentAlterParserOutput', array( $this, $title, $po ) ); return $po; }