Index: trunk/phase3/index.php |
— | — | @@ -151,7 +151,6 @@ |
152 | 152 | SpecialPage::executePath( $wgTitle ); |
153 | 153 | } else { |
154 | 154 | |
155 | | - |
156 | 155 | require_once( "includes/Wiki.php" ) ; |
157 | 156 | $mediaWiki = new MediaWiki() ; |
158 | 157 | |
Index: trunk/phase3/includes/Wiki.php |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | |
27 | 27 | // Namespace might change when using redirects |
28 | 28 | $article = new Article( $title ); |
29 | | - if($action == 'view' && !$wgRequest->getVal( 'oldid' ) ) { |
| 29 | + if($action == 'view' && !$request->getVal( 'oldid' ) ) { |
30 | 30 | $rTitle = Title::newFromRedirect( $article->fetchContent() ); |
31 | 31 | if($rTitle) { |
32 | 32 | # Reload from the page pointed to later |