Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -779,6 +779,10 @@ |
780 | 780 | if ($this->mArticleBodyOnly) { |
781 | 781 | $this->out($this->mBodytext); |
782 | 782 | } else { |
| 783 | + // Hook that allows last minute changes to the output page, e.g. |
| 784 | + // adding of CSS or Javascript by extensions. |
| 785 | + wfRunHooks( 'BeforePageDisplay', array( &$this ) ); |
| 786 | + |
783 | 787 | wfProfileIn( 'Output-skin' ); |
784 | 788 | $sk->outputPage( $this ); |
785 | 789 | wfProfileOut( 'Output-skin' ); |
Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -139,10 +139,6 @@ |
140 | 140 | $fname = 'SkinTemplate::outputPage'; |
141 | 141 | wfProfileIn( $fname ); |
142 | 142 | |
143 | | - // Hook that allows last minute changes to the output page, e.g. |
144 | | - // adding of CSS or Javascript by extensions. |
145 | | - wfRunHooks( 'BeforePageDisplay', array( &$out ) ); |
146 | | - |
147 | 143 | $oldid = $wgRequest->getVal( 'oldid' ); |
148 | 144 | $diff = $wgRequest->getVal( 'diff' ); |
149 | 145 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -158,6 +158,7 @@ |
159 | 159 | * (bug 13463) Login successful page doesn't use user's preferred interface language |
160 | 160 | * (bug 13630) Fixed warnings for pass by reference at call time in |
161 | 161 | Special:Revisiondelete when generating the log entry. |
| 162 | +* (bug 12064) BeforePageDisplay hook is now called for all skins |
162 | 163 | |
163 | 164 | === API changes in 1.13 === |
164 | 165 | |