Index: trunk/extensions/UploadWizard/UploadWizard.alias.php |
— | — | @@ -9,6 +9,7 @@ |
10 | 10 | /** English (English) */ |
11 | 11 | $specialPageAliases['en'] = array( |
12 | 12 | 'UploadWizard' => array( 'UploadWizard' ), |
| 13 | + 'UploadCampaigns' => array( 'UploadCampaigns' ), |
13 | 14 | ); |
14 | 15 | |
15 | 16 | /** Arabic (العربية) */ |
Index: trunk/extensions/UploadWizard/UploadWizard.i18n.php |
— | — | @@ -14,6 +14,7 @@ |
15 | 15 | $messages['en'] = array( |
16 | 16 | 'uploadwizard' => 'Upload wizard', |
17 | 17 | 'uploadwizard-desc' => 'Upload wizard, developed for the Multimedia Usability grant', |
| 18 | + 'uploadcampaigns' => 'Upload campaigns', |
18 | 19 | 'mwe-upwiz-js-off' => 'UploadWizard uses JavaScript for an improved interface. Your browser either does not support JavaScript or has JavaScript turned off, so we are showing you a simple upload form.', |
19 | 20 | 'mwe-upwiz-extension-disabled' => 'This page has been disabled due to temporary technical problems. In the meantime try the standard upload form.', |
20 | 21 | 'mwe-upwiz-code-unknown' => 'Unknown language', |
Index: trunk/extensions/UploadWizard/UploadWizard.php |
— | — | @@ -36,12 +36,14 @@ |
37 | 37 | $wgExtensionAliasesFiles['UploadWizard'] = $wgUpwizDir . '/UploadWizard.alias.php'; |
38 | 38 | |
39 | 39 | # Require modules, including the special page |
40 | | -foreach ( array( 'SpecialUploadWizard', |
41 | | - 'UploadWizardMessages', |
42 | | - 'UploadWizardHooks', |
43 | | - 'UploadWizardTutorial' |
44 | | - ) as $module ) { |
45 | | - $wgAutoloadLocalClasses[$module] = $wgUpwizDir . "/" . $module . ".php"; |
| 40 | +foreach ( array( |
| 41 | + 'SpecialUploadWizard', |
| 42 | + 'SpecialUploadCampaigns', |
| 43 | + 'UploadWizardMessages', |
| 44 | + 'UploadWizardHooks', |
| 45 | + 'UploadWizardTutorial' |
| 46 | + ) as $module ) { |
| 47 | + $wgAutoloadLocalClasses[$module] = $wgUpwizDir . '/' . $module . '.php'; |
46 | 48 | } |
47 | 49 | |
48 | 50 | // $wgAPIModules['titlecheck'] = 'ApiTitleCheck'; |
— | — | @@ -51,6 +53,9 @@ |
52 | 54 | $wgSpecialPages['UploadWizard'] = 'SpecialUploadWizard'; |
53 | 55 | $wgSpecialPageGroups['UploadWizard'] = 'media'; |
54 | 56 | |
| 57 | +$wgSpecialPages['UploadCampaigns'] = 'SpecialUploadCampaigns'; |
| 58 | +$wgSpecialPageGroups['UploadCampaigns'] = 'media'; |
| 59 | + |
55 | 60 | $wgResourceLoaderNamedPaths[ 'UploadWizardPage' ] = 'extensions/UploadWizard/UploadWizardPage.js'; |
56 | 61 | |
57 | 62 | // Set up the javascript path for the loader and localization file. |
Index: trunk/extensions/UploadWizard/SpecialUploadCampaigns.php |
— | — | @@ -0,0 +1,42 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Special:UploadCampaigns |
| 5 | + * |
| 6 | + * Configuration interface for upload wizard campaigns. |
| 7 | + * |
| 8 | + * @file |
| 9 | + * @ingroup SpecialPage |
| 10 | + * @ingroup Upload |
| 11 | + */ |
| 12 | + |
| 13 | +class SpecialUploadCampaigns extends SpecialPage { |
| 14 | + |
| 15 | + /** |
| 16 | + * Constructor. |
| 17 | + * |
| 18 | + * @param $request is the request (usually wgRequest) |
| 19 | + * @param $par is everything in the URL after Special:UploadWizard. Not sure what we can use it for |
| 20 | + */ |
| 21 | + public function __construct( $request = null, $par = null ) { |
| 22 | + global $wgRequest; |
| 23 | + |
| 24 | + parent::__construct( 'UploadCampaigns', 'delete' ); |
| 25 | + |
| 26 | + // TODO |
| 27 | + } |
| 28 | + |
| 29 | + /** |
| 30 | + * Main method. |
| 31 | + * |
| 32 | + * @param string $subPage, e.g. the "foo" in Special:UploadWizard/foo. |
| 33 | + */ |
| 34 | + public function execute( $subPage ) { |
| 35 | + // If the user is authorized, display the page, if not, show an error. |
| 36 | + if ( $this->userCanExecute( $GLOBALS['wgUser'] ) ) { |
| 37 | + // TODO |
| 38 | + } else { |
| 39 | + $this->displayRestrictionError(); |
| 40 | + } |
| 41 | + } |
| 42 | + |
| 43 | +} |
\ No newline at end of file |
Property changes on: trunk/extensions/UploadWizard/SpecialUploadCampaigns.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 44 | + native |
Property changes on: trunk/extensions/UploadWizard |
___________________________________________________________________ |
Modified: svn:ignore |
2 | 45 | - .project |
3 | 46 | + .project |
.git |