Index: trunk/extensions/SemanticForms/includes/SF_Utils.php |
— | — | @@ -7,8 +7,6 @@ |
8 | 8 | * @ingroup SF |
9 | 9 | */ |
10 | 10 | |
11 | | -if ( !defined( 'MEDIAWIKI' ) ) die(); |
12 | | - |
13 | 11 | class SFUtils { |
14 | 12 | |
15 | 13 | /** |
— | — | @@ -242,10 +240,12 @@ |
243 | 241 | $form_body .= "\t" . Html::hidden( 'wpEditToken', $wgUser->isLoggedIn() ? $wgUser->editToken() : EDIT_TOKEN_SUFFIX ) . "\n"; |
244 | 242 | $form_body .= "\t" . Html::hidden( $action, null ) . "\n"; |
245 | 243 | |
246 | | - if ( $is_minor_edit ) |
| 244 | + if ( $is_minor_edit ) { |
247 | 245 | $form_body .= "\t" . Html::hidden( 'wpMinoredit' , null ) . "\n"; |
248 | | - if ( $watch_this ) |
| 246 | + } |
| 247 | + if ( $watch_this ) { |
249 | 248 | $form_body .= "\t" . Html::hidden( 'wpWatchthis', null ) . "\n"; |
| 249 | + } |
250 | 250 | $text .= Xml::tags( |
251 | 251 | 'form', |
252 | 252 | array( |
— | — | @@ -292,7 +292,7 @@ |
293 | 293 | |
294 | 294 | /** |
295 | 295 | * Javascript files to be added regardless of the MediaWiki version |
296 | | - * (i.e., even if the ResourceLoader is installed). |
| 296 | + * (i.e., even if the ResourceLoader exists). |
297 | 297 | */ |
298 | 298 | public static function addJavascriptFiles( $parser ) { |
299 | 299 | global $wgOut, $wgFCKEditorDir, $wgScriptPath, $wgJsMimeType; |
— | — | @@ -320,7 +320,7 @@ |
321 | 321 | |
322 | 322 | /** |
323 | 323 | * Includes the necessary Javascript and CSS files for the form |
324 | | - * to display and work correctly |
| 324 | + * to display and work correctly. |
325 | 325 | * |
326 | 326 | * Accepts an optional Parser instance, or uses $wgOut if omitted. |
327 | 327 | */ |
— | — | @@ -612,13 +612,13 @@ |
613 | 613 | } |
614 | 614 | |
615 | 615 | /** |
616 | | - * Creates an array of values that match the specified source name and type, |
617 | | - * for use by both Javascript autocompletion and comboboxes. |
| 616 | + * Creates an array of values that match the specified source name and |
| 617 | + * type, for use by both Javascript autocompletion and comboboxes. |
618 | 618 | */ |
619 | 619 | public static function getAutocompleteValues( $source_name, $source_type ) { |
620 | 620 | $names_array = array(); |
621 | | - // the query depends on whether this is a property, category, concept |
622 | | - // or namespace |
| 621 | + // The query depends on whether this is a property, category, |
| 622 | + // concept or namespace. |
623 | 623 | if ( $source_type == 'property' || $source_type == 'attribute' || $source_type == 'relation' ) { |
624 | 624 | $names_array = self::getAllValuesForProperty( $source_name ); |
625 | 625 | } elseif ( $source_type == 'category' ) { |