Index: trunk/extensions/Eval/Eval.class.php |
— | — | @@ -46,14 +46,14 @@ |
47 | 47 | } |
48 | 48 | |
49 | 49 | public function execute() { |
50 | | - global $wgOut, $wgTitle; |
| 50 | + global $wgOut, $wgScript; |
51 | 51 | |
52 | 52 | $wgOut->addHTML( |
53 | 53 | Xml::openElement( 'form', |
54 | 54 | array( |
55 | 55 | 'id' => 'specialeval', |
56 | 56 | 'method' => 'get', |
57 | | - 'action' => $wgTitle->escapeLocalUrl() |
| 57 | + 'action' => $wgScript |
58 | 58 | ) |
59 | 59 | ) . |
60 | 60 | # Gotta use open and close here to |
— | — | @@ -95,7 +95,7 @@ |
96 | 96 | array( |
97 | 97 | 'type' => 'hidden', |
98 | 98 | 'name' => 'title', |
99 | | - 'value' => 'Special:Eval' |
| 99 | + 'value' => SpecialPage::getTitleFor( 'Eval' )->getPrefixedDBkey() |
100 | 100 | ), |
101 | 101 | '' |
102 | 102 | ) . |