r90254 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90253‎ | r90254 | r90255 >
Date:02:20, 17 June 2011
Author:yaron
Status:deferred
Tags:
Comment:
Fixed some indentation formatting
Modified paths:
  • /trunk/extensions/SemanticForms/specials/SF_CreateClass.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/specials/SF_CreateClass.php
@@ -50,11 +50,11 @@
5151 global $wgOut, $wgRequest, $wgUser, $sfgScriptPath;
5252 global $wgLang, $smwgContLang;
5353
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+ }
5959
6060 $this->setHeaders();
6161 $wgOut->addExtensionStyle( $sfgScriptPath . "/skins/SemanticForms.css" );
@@ -164,7 +164,7 @@
165165 <p>$form_name_label: <input type="text" size="30" name="form_name"></p>
166166 <p>$category_name_label <input type="text" size="30" name="category_name"></p>
167167 <div>
168 - <table id="mainTable">
 168+ <table id="mainTable">
169169 <tr>
170170 <th colspan="2">$property_name_label</th>
171171 <th>$field_name_label</th>
@@ -194,10 +194,10 @@
195195 <select name="property_type_$n">
196196
197197 END;
198 - $optionsStr ="";
 198+ $optionsStr ="";
199199 foreach ( $datatype_labels as $label ) {
200 - $text .= " <option>$label</option>\n";
201 - $optionsStr .= $label . ",";
 200+ $text .= " <option>$label</option>\n";
 201+ $optionsStr .= $label . ",";
202202 }
203203 $text .= <<<END
204204 </select>