Index: branches/liquidthreads/extensions/LqtPages.php |
— | — | @@ -12,6 +12,16 @@ |
13 | 13 | die( -1 ); |
14 | 14 | } |
15 | 15 | |
| 16 | +define('NS_LQT_THREAD', 16); |
| 17 | +define('NS_LQT_THREAD_TALK', 17); |
| 18 | +define('NS_LQT_SUMMARY', 18); |
| 19 | +define('NS_LQT_SUMMARY_TALK', 19); |
| 20 | + |
| 21 | +$wgCanonicalNamespaceNames[NS_LQT_THREAD] = 'Thread'; |
| 22 | +$wgCanonicalNamespaceNames[NS_LQT_THREAD_TALK] = 'Thread_talk'; |
| 23 | +$wgCanonicalNamespaceNames[NS_LQT_SUMMARY] = 'Summary'; |
| 24 | +$wgCanonicalNamespaceNames[NS_LQT_SUMMARY_TALK] = 'Summary_talk'; |
| 25 | + |
16 | 26 | require_once('LqtBaseView.php'); |
17 | 27 | require_once('LqtI18N.php'); |
18 | 28 | |
Index: branches/liquidthreads/includes/Defines.php |
— | — | @@ -61,10 +61,6 @@ |
62 | 62 | define('NS_HELP_TALK', 13); |
63 | 63 | define('NS_CATEGORY', 14); |
64 | 64 | define('NS_CATEGORY_TALK', 15); |
65 | | -define('NS_LQT_THREAD', 16); |
66 | | -define('NS_LQT_THREAD_TALK', 17); |
67 | | -define('NS_LQT_SUMMARY', 18); |
68 | | -define('NS_LQT_SUMMARY_TALK', 19); |
69 | 65 | /**#@-*/ |
70 | 66 | |
71 | 67 | /** |
Index: branches/liquidthreads/includes/EditPage.php |
— | — | @@ -47,8 +47,8 @@ |
48 | 48 | public $editFormTextAfterTools; |
49 | 49 | public $editFormTextBottom; |
50 | 50 | |
51 | | - public $didSave = false; # LQT HACK. |
52 | | - public $suppressIntro = false; # LQT HACK. |
| 51 | + public $didSave = false; |
| 52 | + public $suppressIntro = false; |
53 | 53 | |
54 | 54 | /** |
55 | 55 | * @todo document |
— | — | @@ -595,7 +595,7 @@ |
596 | 596 | */ |
597 | 597 | private function showIntro() { |
598 | 598 | global $wgOut, $wgUser; |
599 | | - if ( $this->suppressIntro ) return; # LQT HACK. |
| 599 | + if ( $this->suppressIntro ) return; |
600 | 600 | if( !$this->showCustomIntro() && !$this->mArticle->getTitle()->exists() ) { |
601 | 601 | if( $wgUser->isLoggedIn() ) { |
602 | 602 | $wgOut->addWikiText( wfMsg( 'newarticletext' ) ); |
— | — | @@ -750,7 +750,7 @@ |
751 | 751 | $isComment=($this->section=='new'); |
752 | 752 | $this->mArticle->insertNewArticle( $this->textbox1, $this->summary, |
753 | 753 | $this->minoredit, $this->watchthis, false, $isComment); |
754 | | - $this->didSave = true; # LQT HACK. |
| 754 | + $this->didSave = true; |
755 | 755 | |
756 | 756 | wfProfileOut( $fname ); |
757 | 757 | return false; |
— | — | @@ -888,7 +888,7 @@ |
889 | 889 | # update the article here |
890 | 890 | if( $this->mArticle->updateArticle( $text, $this->summary, $this->minoredit, |
891 | 891 | $this->watchthis, '', $sectionanchor ) ) { |
892 | | - $this->didSave = true; # LQT HACK. |
| 892 | + $this->didSave = true; |
893 | 893 | wfProfileOut( $fname ); |
894 | 894 | return false; |
895 | 895 | } else { |
Index: branches/liquidthreads/includes/Wiki.php |
— | — | @@ -371,7 +371,6 @@ |
372 | 372 | |
373 | 373 | wfProfileIn( 'MediaWiki::performAction' ); |
374 | 374 | |
375 | | - // TODO LQT HACK |
376 | 375 | if ( !wfRunHooks('MediaWikiPerformAction', array($output, $article, $title, $user, $request)) ) { |
377 | 376 | wfProfileOut( 'MediaWiki::performAction' ); |
378 | 377 | return; |
Index: branches/liquidthreads/includes/Namespace.php |
— | — | @@ -25,10 +25,6 @@ |
26 | 26 | NS_HELP_TALK => 'Help_talk', |
27 | 27 | NS_CATEGORY => 'Category', |
28 | 28 | NS_CATEGORY_TALK => 'Category_talk', |
29 | | - NS_LQT_THREAD => 'Thread', |
30 | | - NS_LQT_THREAD_TALK => 'Thread_talk', |
31 | | - NS_LQT_SUMMARY => 'Summary', |
32 | | - NS_LQT_SUMMARY_TALK => 'Summary_talk', |
33 | 29 | ); |
34 | 30 | |
35 | 31 | if( is_array( $wgExtraNamespaces ) ) { |
Index: branches/liquidthreads/includes/SkinTemplate.php |
— | — | @@ -765,6 +765,7 @@ |
766 | 766 | ); |
767 | 767 | } |
768 | 768 | } |
| 769 | + |
769 | 770 | |
770 | 771 | wfRunHooks( 'SkinTemplateTabs', array( &$this , &$content_actions ) ) ; |
771 | 772 | } else { |
Index: branches/liquidthreads/includes/SpecialPage.php |
— | — | @@ -75,7 +75,6 @@ |
76 | 76 | |
77 | 77 | /** |
78 | 78 | * Should the subpage part be removed from titles in executePath()? |
79 | | - * LQT HACK. |
80 | 79 | **/ |
81 | 80 | static public $mStripSubpages = true; |
82 | 81 | |
— | — | @@ -455,7 +454,7 @@ |
456 | 455 | wfProfileOut( __METHOD__ ); |
457 | 456 | return false; |
458 | 457 | } elseif ( !$including ) { |
459 | | - $wgTitle = $page->getTitle( SpecialPage::$mStripSubpages ? '' : $par ); # LQT HACK didn't have $par here. |
| 458 | + $wgTitle = $page->getTitle( SpecialPage::$mStripSubpages ? '' : $par ); |
460 | 459 | } |
461 | 460 | $page->including( $including ); |
462 | 461 | |