Index: trunk/phase3/includes/Article.php |
— | — | @@ -362,6 +362,7 @@ |
363 | 363 | if ( $this->mContentLoaded ) { |
364 | 364 | return $this->mContent; |
365 | 365 | } |
| 366 | + |
366 | 367 | $dbr =& $this->getDB(); |
367 | 368 | $fname = 'Article::fetchContent'; |
368 | 369 | |
— | — | @@ -464,6 +465,8 @@ |
465 | 466 | $this->mContentLoaded = true; |
466 | 467 | $this->mRevision =& $revision; |
467 | 468 | |
| 469 | + wfRunHooks( 'ArticleAfterFetchContent', array( &$this, &$this->mContent ) ) ; |
| 470 | + |
468 | 471 | return $this->mContent; |
469 | 472 | } |
470 | 473 | |
Index: trunk/phase3/includes/Parser.php |
— | — | @@ -192,6 +192,10 @@ |
193 | 193 | $text = $this->strip( $text, $x ); |
194 | 194 | wfRunHooks( 'ParserAfterStrip', array( &$this, &$text, &$x ) ); |
195 | 195 | |
| 196 | + # Hook to suspend the parser in this state |
| 197 | + if ( !wfRunHooks( 'ParserBeforeInternalParse', array( &$this, &$text, &$x ) ) ) |
| 198 | + return $text ; |
| 199 | + |
196 | 200 | $text = $this->internalParse( $text ); |
197 | 201 | |
198 | 202 | $text = $this->unstrip( $text, $this->mStripState ); |