Index: trunk/extensions/SemanticForms/SemanticForms.php |
— | — | @@ -80,8 +80,8 @@ |
81 | 81 | |
82 | 82 | $wgHooks['LinkEnd'][] = 'SFFormLinker::setBrokenLink'; |
83 | 83 | // 'SkinTemplateNavigation' replaced 'SkinTemplateTabs' in the Vector skin |
84 | | -$wgHooks['SkinTemplateTabs'][] = 'FormeditAction::displayTab'; |
85 | | -$wgHooks['SkinTemplateNavigation'][] = 'FormeditAction::displayTab2'; |
| 84 | +$wgHooks['SkinTemplateTabs'][] = 'SFFormEditAction::displayTab'; |
| 85 | +$wgHooks['SkinTemplateNavigation'][] = 'SFFormEditAction::displayTab2'; |
86 | 86 | $wgHooks['smwInitProperties'][] = 'SFUtils::initProperties'; |
87 | 87 | $wgHooks['AdminLinks'][] = 'SFUtils::addToAdminLinks'; |
88 | 88 | $wgHooks['ArticlePurge'][] = 'SFFormUtils::purgeCache'; |
— | — | @@ -94,10 +94,10 @@ |
95 | 95 | |
96 | 96 | if ( version_compare( $wgVersion, '1.18', '<' ) ) { |
97 | 97 | // TODO: Using UnknownAction is deprecated from MW 1.18 onwards. |
98 | | - $wgHooks['UnknownAction'][] = 'FormeditAction::displayForm'; |
| 98 | + $wgHooks['UnknownAction'][] = 'SFFormEditAction::displayForm'; |
99 | 99 | } else { |
100 | 100 | // Introduced in MW 1.18. |
101 | | - $wgActions['formedit'] = true; |
| 101 | + $wgActions['formedit'] = 'SFFormEditAction'; |
102 | 102 | } |
103 | 103 | |
104 | 104 | $wgAPIModules['sfautocomplete'] = 'SFAutocompleteAPI'; |
— | — | @@ -150,7 +150,7 @@ |
151 | 151 | $wgAutoloadClasses['SFParserFunctions'] = $sfgIP . '/includes/SF_ParserFunctions.php'; |
152 | 152 | $wgAutoloadClasses['SFAutocompleteAPI'] = $sfgIP . '/includes/SF_AutocompleteAPI.php'; |
153 | 153 | $wgAutoloadClasses['SFAutoeditAPI'] = $sfgIP . '/includes/SF_AutoeditAPI.php'; |
154 | | -$wgAutoloadClasses['FormeditAction'] = $sfgIP . '/includes/SF_FormEditAction.php'; |
| 154 | +$wgAutoloadClasses['SFFormEditAction'] = $sfgIP . '/includes/SF_FormEditAction.php'; |
155 | 155 | |
156 | 156 | // FormInputs |
157 | 157 | $wgAutoloadClasses['SFFormInput'] = $sfgIP . '/includes/forminputs/SF_FormInput.php'; |
Index: trunk/extensions/SemanticForms/includes/SF_FormEditAction.php |
— | — | @@ -1,7 +1,10 @@ |
2 | 2 | <?php |
3 | | -/* |
4 | | - * To change this template, choose Tools | Templates |
5 | | - * and open the template in the editor. |
| 3 | +/** |
| 4 | + * Handles the formedit action. |
| 5 | + * |
| 6 | + * @author Stephan Gambke |
| 7 | + * @file |
| 8 | + * @ingroup SF |
6 | 9 | */ |
7 | 10 | |
8 | 11 | // TODO: Action class did not exist until MW 1.18 |
— | — | @@ -9,12 +12,7 @@ |
10 | 13 | class Action{} |
11 | 14 | } |
12 | 15 | |
13 | | -/** |
14 | | - * Description of FormeditAction |
15 | | - * |
16 | | - * @author Stephan Gambke |
17 | | - */ |
18 | | -class FormeditAction extends Action |
| 16 | +class SFFormEditAction extends Action |
19 | 17 | { |
20 | 18 | /** |
21 | 19 | * Return the name of the action this object responds to |