Index: trunk/phase3/includes/SpecialPage.php |
— | — | @@ -412,8 +412,13 @@ |
413 | 413 | if(!function_exists($func) and $this->mFile) { |
414 | 414 | require_once( $this->mFile ); |
415 | 415 | } |
416 | | - $this->outputHeader(); |
| 416 | + if ( wfRunHooks( 'SpecialPageExecuteBeforeHeader', array( &$this, &$par, &$func ) ) ) |
| 417 | + $this->outputHeader(); |
| 418 | + if ( ! wfRunHooks( 'SpecialPageExecuteBeforePage', array( &$this, &$par, &$func ) ) ) |
| 419 | + return; |
417 | 420 | $func( $par, $this ); |
| 421 | + if ( ! wfRunHooks( 'SpecialPageExecuteAfterPage', array( &$this, &$par, &$func ) ) ) |
| 422 | + return; |
418 | 423 | } else { |
419 | 424 | $this->displayRestrictionError(); |
420 | 425 | } |