Index: trunk/extensions/SemanticForms/specials/SF_CreateClass.php |
— | — | @@ -50,11 +50,11 @@ |
51 | 51 | global $wgOut, $wgRequest, $wgUser, $sfgScriptPath; |
52 | 52 | global $wgLang, $smwgContLang; |
53 | 53 | |
54 | | - # Check permissions |
55 | | - if ( !$wgUser->isAllowed( 'createclass' ) ) { |
56 | | - $this->displayRestrictionError(); |
57 | | - return; |
58 | | - } |
| 54 | + # Check permissions |
| 55 | + if ( !$wgUser->isAllowed( 'createclass' ) ) { |
| 56 | + $this->displayRestrictionError(); |
| 57 | + return; |
| 58 | + } |
59 | 59 | |
60 | 60 | $this->setHeaders(); |
61 | 61 | $wgOut->addExtensionStyle( $sfgScriptPath . "/skins/SemanticForms.css" ); |
— | — | @@ -164,7 +164,7 @@ |
165 | 165 | <p>$form_name_label: <input type="text" size="30" name="form_name"></p> |
166 | 166 | <p>$category_name_label <input type="text" size="30" name="category_name"></p> |
167 | 167 | <div> |
168 | | - <table id="mainTable"> |
| 168 | + <table id="mainTable"> |
169 | 169 | <tr> |
170 | 170 | <th colspan="2">$property_name_label</th> |
171 | 171 | <th>$field_name_label</th> |
— | — | @@ -194,10 +194,10 @@ |
195 | 195 | <select name="property_type_$n"> |
196 | 196 | |
197 | 197 | END; |
198 | | - $optionsStr =""; |
| 198 | + $optionsStr =""; |
199 | 199 | foreach ( $datatype_labels as $label ) { |
200 | | - $text .= " <option>$label</option>\n"; |
201 | | - $optionsStr .= $label . ","; |
| 200 | + $text .= " <option>$label</option>\n"; |
| 201 | + $optionsStr .= $label . ","; |
202 | 202 | } |
203 | 203 | $text .= <<<END |
204 | 204 | </select> |