Index: trunk/phase3/includes/specials/SpecialRandompage.php |
— | — | @@ -54,9 +54,9 @@ |
55 | 55 | } |
56 | 56 | |
57 | 57 | public function execute( $par ) { |
58 | | - global $wgOut, $wgContLang, $wgRequest; |
| 58 | + global $wgContLang; |
59 | 59 | |
60 | | - if ($par) { |
| 60 | + if ( $par ) { |
61 | 61 | $this->setNamespace( $wgContLang->getNsIndex( $par ) ); |
62 | 62 | } |
63 | 63 | |
— | — | @@ -64,15 +64,15 @@ |
65 | 65 | |
66 | 66 | if( is_null( $title ) ) { |
67 | 67 | $this->setHeaders(); |
68 | | - $wgOut->addWikiMsg( strtolower( $this->getName() ) . '-nopages', |
| 68 | + $this->getOutput()->addWikiMsg( strtolower( $this->getName() ) . '-nopages', |
69 | 69 | $this->getNsList(), count( $this->namespaces ) ); |
70 | 70 | return; |
71 | 71 | } |
72 | 72 | |
73 | 73 | $redirectParam = $this->isRedirect() ? array( 'redirect' => 'no' ) : array(); |
74 | | - $query = array_merge( $wgRequest->getValues(), $redirectParam ); |
| 74 | + $query = array_merge( $this->getRequest()->getValues(), $redirectParam ); |
75 | 75 | unset( $query['title'] ); |
76 | | - $wgOut->redirect( $title->getFullUrl( $query ) ); |
| 76 | + $this->getOutput()->redirect( $title->getFullUrl( $query ) ); |
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |