Index: trunk/extensions/CategoryTree/CategoryTreePage.php |
— | — | @@ -97,9 +97,11 @@ |
98 | 98 | * Input form for entering a category |
99 | 99 | */ |
100 | 100 | function makeInputForm() { |
| 101 | + global $wgScript; |
101 | 102 | $thisTitle = Title::makeTitle( NS_SPECIAL, $this->getName() ); |
102 | 103 | $form = ''; |
103 | | - $form .= wfOpenElement( 'form', array( 'name' => 'categorytree', 'method' => 'get', 'action' => $thisTitle->getLocalUrl() ) ); |
| 104 | + $form .= wfOpenElement( 'form', array( 'name' => 'categorytree', 'method' => 'get', 'action' => $wgScript ) ); |
| 105 | + $form .= wfElement( 'input', array( 'type' => 'hidden', 'name' => 'title', 'value' => $thisTitle->getPrefixedDbKey() ) ); |
104 | 106 | $form .= wfElement( 'label', array( 'for' => 'target' ), wfMsg( 'categorytree-category' ) ) . ' '; |
105 | 107 | $form .= wfElement( 'input', array( 'type' => 'text', 'name' => 'target', 'id' => 'target', 'value' => $this->target ) ) . ' '; |
106 | 108 | $form .= wfOpenElement( 'select', array( 'name' => 'mode' ) ); |