Index: trunk/extensions/ApprovedRevs/ApprovedRevs.hooks.php |
— | — | @@ -19,8 +19,7 @@ |
20 | 20 | */ |
21 | 21 | static public function setApprovedRevForParsing( &$parser, &$text, &$stripState ) { |
22 | 22 | global $wgRequest; |
23 | | - $action = $wgRequest->getVal( 'action' ); |
24 | | - if ( $action == 'submit' ) { |
| 23 | + if ( $wgRequest->getCheck( 'wpSave' ) ) { |
25 | 24 | $title = $parser->getTitle(); |
26 | 25 | if ( ! ApprovedRevs::pageIsApprovable( $title ) ) { |
27 | 26 | return true; |
— | — | @@ -110,7 +109,11 @@ |
111 | 110 | if ( $egApprovedRevsBlankIfUnapproved ) { |
112 | 111 | $content = ''; |
113 | 112 | global $wgOut; |
114 | | - $wgOut->setSubtitle( wfMsg( 'approvedrevs-blankpageshown' ) ); |
| 113 | + if ( $wgOut->getSubtitle() != '' ) { |
| 114 | + $wgOut->appendSubtitle( "<br />" . wfMsg( 'approvedrevs-blankpageshown' ) ); |
| 115 | + } else { |
| 116 | + $wgOut->setSubtitle( wfMsg( 'approvedrevs-blankpageshown' ) ); |
| 117 | + } |
115 | 118 | } |
116 | 119 | } |
117 | 120 | return true; |
— | — | @@ -154,7 +157,11 @@ |
155 | 158 | $text .= ' ' . $curRevLink; |
156 | 159 | } |
157 | 160 | global $wgOut; |
158 | | - $wgOut->setSubtitle( $text ); |
| 161 | + if ( $wgOut->getSubtitle() != '' ) { |
| 162 | + $wgOut->appendSubtitle( "<br />" . $text ); |
| 163 | + } else { |
| 164 | + $wgOut->setSubtitle( $text ); |
| 165 | + } |
159 | 166 | return false; |
160 | 167 | } |
161 | 168 | |