Index: trunk/extensions/Storyboard/StoryReview_body.php |
— | — | @@ -1,28 +1,26 @@ |
2 | 2 | <?php |
3 | | - |
4 | | -/** |
| 3 | +/** |
5 | 4 | * File holding the SpecialStoryReview class that allows reviewers to moderate the submitted stories. |
6 | 5 | * |
7 | 6 | * @file StoryReview_body.php |
8 | 7 | * @ingroup Storyboard |
9 | | - * |
| 8 | + * |
10 | 9 | * @author Jeroen De Dauw |
11 | 10 | */ |
12 | 11 | |
13 | | -if( !defined( 'MEDIAWIKI' ) ) { |
| 12 | +if ( !defined( 'MEDIAWIKI' ) ) { |
14 | 13 | die( 'Not an entry point.' ); |
15 | 14 | } |
16 | 15 | |
17 | 16 | class SpecialStoryReview extends IncludableSpecialPage { |
18 | | - |
| 17 | + |
19 | 18 | function __construct() { |
20 | 19 | parent::__construct( 'StoryReview' ); |
21 | | - |
22 | | - wfLoadExtensionMessages( 'Storyboard' ); |
| 20 | + |
| 21 | + wfLoadExtensionMessages( 'Storyboard' ); |
23 | 22 | } |
24 | | - |
| 23 | + |
25 | 24 | function execute( $language ) { |
26 | 25 | global $wgOut; |
27 | 26 | } |
28 | | - |
29 | | -} |
\ No newline at end of file |
| 27 | +} |
Index: trunk/extensions/Storyboard/Storyboard.alias.php |
— | — | @@ -1,5 +1,4 @@ |
2 | 2 | <?php |
3 | | - |
4 | 3 | /** |
5 | 4 | * Aliases for the special pages of the Storyboard extension. |
6 | 5 | * |
— | — | @@ -16,4 +15,4 @@ |
17 | 16 | */ |
18 | 17 | $aliases['en'] = array( |
19 | 18 | 'StoryReview' => array( 'StoryReview' ), |
20 | | -); |
\ No newline at end of file |
| 19 | +); |
Index: trunk/extensions/Storyboard/Storyboard.i18n.php |
— | — | @@ -1,5 +1,4 @@ |
2 | 2 | <?php |
3 | | - |
4 | 3 | /** |
5 | 4 | * Internationalization file for the Storyboard extension. |
6 | 5 | * |
— | — | @@ -16,6 +15,6 @@ |
17 | 16 | */ |
18 | 17 | $messages['en'] = array( |
19 | 18 | // General |
20 | | - 'storyboard_name' => 'Storyboard', |
21 | | - 'storyboard_desc' => 'Provides a landing page for donors, a page where stories can be submitted, and a story moderation interface.', |
22 | | -); |
\ No newline at end of file |
| 19 | + 'storyboard-name' => 'Storyboard', |
| 20 | + 'storyboard-desc' => 'Provides a landing page for donors, a page where stories can be submitted, and a story moderation interface.', |
| 21 | +); |
Index: trunk/extensions/Storyboard/Storyboard.php |
— | — | @@ -1,12 +1,11 @@ |
2 | 2 | <?php |
3 | | - |
4 | | -/** |
| 3 | +/** |
5 | 4 | * Initialization file for the Storyboard extension. |
6 | 5 | * Extension documentation: http://www.mediawiki.org/wiki/Extension:Storyboard |
7 | 6 | * |
8 | 7 | * @file Storyboard.php |
9 | 8 | * @ingroup Storyboard |
10 | | - * |
| 9 | + * |
11 | 10 | * @author Jeroen De Dauw |
12 | 11 | */ |
13 | 12 | |
— | — | @@ -14,24 +13,24 @@ |
15 | 14 | * This documenation group collects source code files belonging to Storyboard. |
16 | 15 | * |
17 | 16 | * Please do not use this group name for other code. |
18 | | - * |
| 17 | + * |
19 | 18 | * @defgroup Storyboard Storyboard |
20 | 19 | */ |
21 | 20 | |
22 | | -if( !defined( 'MEDIAWIKI' ) ) { |
| 21 | +if ( !defined( 'MEDIAWIKI' ) ) { |
23 | 22 | die( 'Not an entry point.' ); |
24 | 23 | } |
25 | 24 | |
26 | | -define('Storyboard_VERSION', '0'); |
| 25 | +define( 'Storyboard_VERSION', '0' ); |
27 | 26 | |
28 | | -$egStoryboardScriptPath = $wgScriptPath . '/extensions/Storyboard'; |
29 | | -$egStoryboardDir = dirname( __FILE__ ) . '/'; |
| 27 | +$egStoryboardScriptPath = $wgScriptPath . '/extensions/Storyboard'; |
| 28 | +$egStoryboardDir = dirname( __FILE__ ) . '/'; |
30 | 29 | |
31 | 30 | // Include the settings file. |
32 | | -require_once($egStoryboardDir . 'Storyboard_Settings.php'); |
| 31 | +require_once( $egStoryboardDir . 'Storyboard_Settings.php' ); |
33 | 32 | |
34 | 33 | // Register the initialization function of Storyboard. |
35 | | -$wgExtensionFunctions[] = 'efStoryboardSetup'; |
| 34 | +$wgExtensionFunctions[] = 'efStoryboardSetup'; |
36 | 35 | |
37 | 36 | // Register the initernationalization and aliasing files of Storyboard. |
38 | 37 | $wgExtensionMessagesFiles['Storyboard'] = $egStoryboardDir . 'Storyboard.i18n.php'; |
— | — | @@ -47,18 +46,16 @@ |
48 | 47 | */ |
49 | 48 | function efStoryboardSetup() { |
50 | 49 | global $wgExtensionCredits; |
51 | | - |
52 | | - wfLoadExtensionMessages( 'Storyboard' ); |
53 | | - |
| 50 | + |
| 51 | + wfLoadExtensionMessages( 'Storyboard' ); |
| 52 | + |
54 | 53 | $wgExtensionCredits['parserhook'][] = array( |
55 | 54 | 'path' => __FILE__, |
56 | | - 'name' => wfMsg('storyboard_name'), |
| 55 | + 'name' => wfMsg( 'storyboard-name' ), |
57 | 56 | 'version' => Storyboard_VERSION, |
58 | | - 'author' => array('[http://bn2vs.com Jeroen De Dauw]'), |
| 57 | + 'author' => array( '[http://bn2vs.com Jeroen De Dauw]' ), |
59 | 58 | 'url' => 'http://www.mediawiki.org/wiki/Extension:Storyboard', |
60 | | - 'description' => wfMsg( 'storyboard_desc' ), |
61 | | - 'descriptionmsg' => wfMsg( 'storyboard_desc' ), |
| 59 | + 'description' => wfMsg( 'storyboard-desc' ), |
| 60 | + 'descriptionmsg' => 'storyboard-desc', |
62 | 61 | ); |
63 | 62 | } |
64 | | - |
65 | | - |
Index: trunk/extensions/Storyboard/Storyboard_Settings.php |
— | — | @@ -1,11 +1,10 @@ |
2 | 2 | <?php |
3 | | - |
4 | 3 | /** |
5 | 4 | * File defining the settings for the Storyboard extension. |
6 | 5 | * More info can be found at http://www.mediawiki.org/wiki/Extension:Storyboard |
7 | 6 | * |
8 | 7 | * NOTICE: |
9 | | - * Changing one of these settings can be done by copieng or cutting it, |
| 8 | + * Changing one of these settings can be done by copieng or cutting it, |
10 | 9 | * and placing it in LocalSettings.php, AFTER the inclusion of Storyboard. |
11 | 10 | * |
12 | 11 | * @file Storyboard_Settings.php |
— | — | @@ -14,6 +13,6 @@ |
15 | 14 | * @author Jeroen De Dauw |
16 | 15 | */ |
17 | 16 | |
18 | | -if( !defined( 'MEDIAWIKI' ) ) { |
| 17 | +if ( !defined( 'MEDIAWIKI' ) ) { |
19 | 18 | die( 'Not an entry point.' ); |
20 | | -} |
\ No newline at end of file |
| 19 | +} |