if ( $this->mContentLoaded ) {
return $this->mContent;
}
+
$dbr =& $this->getDB();
$fname = 'Article::fetchContent';
$this->mContentLoaded = true;
$this->mRevision =& $revision;
+ wfRunHooks( 'ArticleAfterFetchContent', array( &$this, &$this->mContent ) ) ;
+
return $this->mContent;
}
$text = $this->strip( $text, $x );
wfRunHooks( 'ParserAfterStrip', array( &$this, &$text, &$x ) );
+ # Hook to suspend the parser in this state
+ if ( !wfRunHooks( 'ParserBeforeInternalParse', array( &$this, &$text, &$x ) ) )
+ return $text ;
+
$text = $this->internalParse( $text );
$text = $this->unstrip( $text, $this->mStripState );