Index: trunk/extensions/CategoryTree/CategoryTreePage.php |
— | — | @@ -29,8 +29,11 @@ |
30 | 30 | function getOption( $name ) { |
31 | 31 | global $wgCategoryTreeDefaultOptions; |
32 | 32 | |
33 | | - if ( $this->tree ) return $this->tree->getOption( $name ); |
34 | | - else return $wgCategoryTreeDefaultOptions[$name]; |
| 33 | + if ( $this->tree ) { |
| 34 | + return $this->tree->getOption( $name ); |
| 35 | + } else { |
| 36 | + return $wgCategoryTreeDefaultOptions[$name]; |
| 37 | + } |
35 | 38 | } |
36 | 39 | |
37 | 40 | /** |
— | — | @@ -48,7 +51,9 @@ |
49 | 52 | $this->target = trim( $this->target ); |
50 | 53 | |
51 | 54 | # HACK for undefined root category |
52 | | - if ( $this->target == '<rootcategory>' || $this->target == '<rootcategory>' ) $this->target = null; |
| 55 | + if ( $this->target == '<rootcategory>' || $this->target == '<rootcategory>' ) { |
| 56 | + $this->target = null; |
| 57 | + } |
53 | 58 | |
54 | 59 | $options = array(); |
55 | 60 | |
— | — | @@ -109,7 +114,7 @@ |
110 | 115 | $wgOut->addHTML( Xml::openElement( 'form', array( 'name' => 'categorytree', 'method' => 'get', 'action' => $wgScript, 'id' => 'mw-categorytree-form' ) ) ); |
111 | 116 | $wgOut->addHTML( Xml::openElement( 'fieldset' ) ); |
112 | 117 | $wgOut->addHTML( Xml::element( 'legend', null, wfMsgNoTrans( 'categorytree-legend' ) ) ); |
113 | | - $wgOut->addHTML( Xml::Html( 'title', $thisTitle->getPrefixedDbKey() ) ); |
| 118 | + $wgOut->addHTML( Html::Hidden( 'title', $thisTitle->getPrefixedDbKey() ) ); |
114 | 119 | $wgOut->addHTML( Xml::inputLabel( wfMsgNoTrans( 'categorytree-category' ), 'target', 'target', 20, $this->target ) . ' ' ); |
115 | 120 | $wgOut->addHTML( Xml::openElement( 'select', array( 'name' => 'mode' ) ) ); |
116 | 121 | $wgOut->addHTML( Xml::option( wfMsgNoTrans( 'categorytree-mode-categories' ), 'categories', $mode == CT_MODE_CATEGORIES ? true : false ) ); |