Index: trunk/phase3/includes/Licenses.php |
— | — | @@ -86,9 +86,11 @@ |
87 | 87 | function makeIndexes( $arr ) { |
88 | 88 | $str = ''; |
89 | 89 | |
| 90 | + wfSuppressWarnings(); |
90 | 91 | foreach ( $arr as $item ) |
91 | 92 | $str .= '["' . addslashes( $item ) . '"]'; |
92 | 93 | |
| 94 | + wfRestoreWarnings(); |
93 | 95 | return $str; |
94 | 96 | } |
95 | 97 | |
— | — | @@ -99,7 +101,8 @@ |
100 | 102 | $this->html .= $this->outputOption( |
101 | 103 | $this->msg( $key ), |
102 | 104 | array( |
103 | | - 'value' => '' |
| 105 | + 'value' => '', |
| 106 | + 'disabled' => 'disabled', |
104 | 107 | ), |
105 | 108 | $depth |
106 | 109 | ); |
— | — | @@ -108,7 +111,8 @@ |
109 | 112 | $this->html .= $this->outputOption( |
110 | 113 | $this->msg( $val->text ), |
111 | 114 | array( |
112 | | - 'value' => $val->template |
| 115 | + 'value' => $val->template, |
| 116 | + 'title' => $val->template |
113 | 117 | ), |
114 | 118 | $depth |
115 | 119 | ); |
— | — | @@ -116,7 +120,7 @@ |
117 | 121 | } |
118 | 122 | |
119 | 123 | function outputOption( $val, $attribs = null, $depth ) { |
120 | | - $val = str_repeat( /*   */ "\xc2\xa0", $depth ) . $val; |
| 124 | + $val = str_repeat( /*   */ "\xc2\xa0", $depth * 2 ) . $val; |
121 | 125 | return str_repeat( "\t", $depth ) . wfElement( 'option', $attribs, $val ) . "\n"; |
122 | 126 | } |
123 | 127 | |