Index: trunk/extensions/LiquidThreads/LqtPages.php |
— | — | @@ -911,20 +911,20 @@ |
912 | 912 | |
913 | 913 | function wfLqtSpecialMoveThreadToAnotherPage() { |
914 | 914 | |
915 | | - class SpecialMoveThreadToAnotherPage extends SpecialPage { |
| 915 | + class SpecialMoveThreadToAnotherPage extends SpecialPage { |
916 | 916 | private $user, $output, $request, $title, $thread; |
917 | 917 | |
918 | | - function __construct() { |
919 | | - SpecialPage::SpecialPage( 'Movethread' ); |
920 | | - $this->includable( false ); |
921 | | - } |
| 918 | + function __construct() { |
| 919 | + SpecialPage::SpecialPage( 'Movethread' ); |
| 920 | + $this->includable( false ); |
| 921 | + } |
922 | 922 | |
923 | | - /** |
924 | | - * @see SpecialPage::getDescription |
925 | | - */ |
926 | | - function getDescription() { |
927 | | - return wfMsg( 'lqt_movethread' ); |
928 | | - } |
| 923 | + /** |
| 924 | + * @see SpecialPage::getDescription |
| 925 | + */ |
| 926 | + function getDescription() { |
| 927 | + return wfMsg( 'lqt_movethread' ); |
| 928 | + } |
929 | 929 | |
930 | 930 | function handleGet() { |
931 | 931 | $form_action = $this->title->getLocalURL() . '/' . $this->thread->title()->getPrefixedURL(); |
— | — | @@ -1004,7 +1004,7 @@ |
1005 | 1005 | '<a href="'.$target_title->getFullURL().'">'.$target_title->getPrefixedText().'</a>')); |
1006 | 1006 | } |
1007 | 1007 | |
1008 | | - function execute( $par = null ) { |
| 1008 | + function execute( $par ) { |
1009 | 1009 | global $wgOut, $wgRequest, $wgTitle, $wgUser; |
1010 | 1010 | $this->user = $wgUser; |
1011 | 1011 | $this->output = $wgOut; |
— | — | @@ -1032,28 +1032,28 @@ |
1033 | 1033 | $this->handleGet(); |
1034 | 1034 | } |
1035 | 1035 | |
1036 | | - } |
1037 | | - } |
| 1036 | + } |
| 1037 | + } |
1038 | 1038 | |
1039 | | - SpecialPage::addPage( new SpecialMoveThreadToAnotherPage() ); |
| 1039 | + SpecialPage::addPage( new SpecialMoveThreadToAnotherPage() ); |
1040 | 1040 | } |
1041 | 1041 | |
1042 | 1042 | function wfLqtSpecialDeleteThread() { |
1043 | 1043 | |
1044 | | - class SpecialDeleteThread extends SpecialPage { |
| 1044 | + class SpecialDeleteThread extends SpecialPage { |
1045 | 1045 | private $user, $output, $request, $title, $thread; |
1046 | 1046 | |
1047 | | - function __construct() { |
1048 | | - SpecialPage::SpecialPage( 'Deletethread' ); |
1049 | | - $this->includable( false ); |
1050 | | - } |
| 1047 | + function __construct() { |
| 1048 | + SpecialPage::SpecialPage( 'Deletethread' ); |
| 1049 | + $this->includable( false ); |
| 1050 | + } |
1051 | 1051 | |
1052 | | - /** |
1053 | | - * @see SpecialPage::getDescription |
1054 | | - */ |
1055 | | - function getDescription() { |
1056 | | - return wfMsg( 'lqt_deletethread' ); |
1057 | | - } |
| 1052 | + /** |
| 1053 | + * @see SpecialPage::getDescription |
| 1054 | + */ |
| 1055 | + function getDescription() { |
| 1056 | + return wfMsg( 'lqt_deletethread' ); |
| 1057 | + } |
1058 | 1058 | |
1059 | 1059 | function handleGet() { |
1060 | 1060 | if( !$this->checkUserRights() ) |
— | — | @@ -1134,14 +1134,14 @@ |
1135 | 1135 | $this->output->addHTML($message); |
1136 | 1136 | } |
1137 | 1137 | |
1138 | | - function execute( $par = null ) { |
1139 | | - global $wgOut, $wgRequest, $wgTitle, $wgUser; |
| 1138 | + function execute( $par ) { |
| 1139 | + global $wgOut, $wgRequest, $wgTitle, $wgUser; |
1140 | 1140 | $this->user = $wgUser; |
1141 | 1141 | $this->output = $wgOut; |
1142 | 1142 | $this->request = $wgRequest; |
1143 | 1143 | $this->title = $wgTitle; |
1144 | 1144 | |
1145 | | - $this->setHeaders(); |
| 1145 | + $this->setHeaders(); |
1146 | 1146 | |
1147 | 1147 | if( $par === null || $par === "") { |
1148 | 1148 | $this->output->addHTML(wfMsg('lqt_threadrequired')); |
— | — | @@ -1162,10 +1162,10 @@ |
1163 | 1163 | $this->handleGet(); |
1164 | 1164 | } |
1165 | 1165 | |
1166 | | - } |
1167 | | - } |
| 1166 | + } |
| 1167 | + } |
1168 | 1168 | |
1169 | | - SpecialPage::addPage( new SpecialDeleteThread() ); |
| 1169 | + SpecialPage::addPage( new SpecialDeleteThread() ); |
1170 | 1170 | } |
1171 | 1171 | |
1172 | 1172 | class NewUserMessagesView extends LqtView { |
— | — | @@ -1303,29 +1303,29 @@ |
1304 | 1304 | |
1305 | 1305 | function wfLqtSpecialNewMessages() { |
1306 | 1306 | |
1307 | | - class SpecialNewMessages extends SpecialPage { |
| 1307 | + class SpecialNewMessages extends SpecialPage { |
1308 | 1308 | private $user, $output, $request, $title; |
1309 | 1309 | |
1310 | | - function __construct() { |
1311 | | - SpecialPage::SpecialPage( 'Newmessages' ); |
1312 | | - $this->includable( true ); |
1313 | | - } |
| 1310 | + function __construct() { |
| 1311 | + SpecialPage::SpecialPage( 'Newmessages' ); |
| 1312 | + $this->includable( true ); |
| 1313 | + } |
1314 | 1314 | |
1315 | | - /** |
1316 | | - * @see SpecialPage::getDescription |
1317 | | - */ |
1318 | | - function getDescription() { |
1319 | | - return wfMsg( 'lqt_newmessages' ); |
1320 | | - } |
| 1315 | + /** |
| 1316 | + * @see SpecialPage::getDescription |
| 1317 | + */ |
| 1318 | + function getDescription() { |
| 1319 | + return wfMsg( 'lqt_newmessages' ); |
| 1320 | + } |
1321 | 1321 | |
1322 | | - function execute( $par = null ) { |
1323 | | - global $wgOut, $wgRequest, $wgTitle, $wgUser; |
| 1322 | + function execute( $par ) { |
| 1323 | + global $wgOut, $wgRequest, $wgTitle, $wgUser; |
1324 | 1324 | $this->user = $wgUser; |
1325 | 1325 | $this->output = $wgOut; |
1326 | 1326 | $this->request = $wgRequest; |
1327 | 1327 | $this->title = $wgTitle; |
1328 | 1328 | |
1329 | | - $this->setHeaders(); |
| 1329 | + $this->setHeaders(); |
1330 | 1330 | |
1331 | 1331 | $view = new NewUserMessagesView( $this->output, new Article($this->title), |
1332 | 1332 | $this->title, $this->user, $this->request ); |
— | — | @@ -1339,10 +1339,11 @@ |
1340 | 1340 | $this->output->addHTML('<h2 class="lqt_newmessages_section">Messages on other talkpages:</h2>'); |
1341 | 1341 | $view->setThreads( NewMessages::watchedThreadsForUser($this->user) ); |
1342 | 1342 | $view->show(); |
1343 | | - } |
1344 | | - } |
| 1343 | + } |
| 1344 | + } |
1345 | 1345 | |
1346 | | - SpecialPage::addPage( new SpecialNewMessages() ); |
| 1346 | + SpecialPage::addPage( new SpecialNewMessages() ); |
| 1347 | + |
1347 | 1348 | } |
1348 | 1349 | |
1349 | 1350 | function wfLqtBeforeWatchlistHook( $options, $user, &$hook_sql ) { |