Index: trunk/extensions/Storyboard/specials/StoryReview_body.php |
— | — | @@ -22,5 +22,6 @@ |
23 | 23 | |
24 | 24 | function execute( $language ) { |
25 | 25 | global $wgOut; |
| 26 | + $wgOut->includeJQuery(); |
26 | 27 | } |
27 | 28 | } |
Index: trunk/extensions/Storyboard/Storyboard.sql |
— | — | @@ -0,0 +1,13 @@ |
| 2 | +-- MySQL version of the database schema for the Storyboard extension. |
| 3 | + |
| 4 | +CREATE TABLE `/*$wgDBprefix*/storyboard` ( |
| 5 | + story_id INT(8) unsigned NOT NULL auto_increment, |
| 6 | + story_author_id INT unsigned NULL, |
| 7 | + story_author_name VARCHAR(255) NULL, |
| 8 | + story_hit_count INT(8) unsigned NOT NULL, |
| 9 | + story_title VARCHAR(255) NOT NULL, |
| 10 | + story_text MEDIUMBLOB NULL, |
| 11 | + story_modified CHAR(14) binary NOT NULL default '', |
| 12 | + story_created CHAR(14) binary NOT NULL default '', |
| 13 | + PRIMARY KEY (`story_id`) |
| 14 | +); |
\ No newline at end of file |
Property changes on: trunk/extensions/Storyboard/Storyboard.sql |
___________________________________________________________________ |
Name: svn:eol-style |
1 | 15 | + native |
Index: trunk/extensions/Storyboard/Storyboard.php |
— | — | @@ -55,7 +55,23 @@ |
56 | 56 | $wgExtensionFunctions[] = 'efStoryboardStorysubmissionSetup'; |
57 | 57 | } |
58 | 58 | |
| 59 | +// Hook for db updates. |
| 60 | +$wgHooks['LoadExtensionSchemaUpdates'][] = 'efStoryboardSchemaUpdate'; |
| 61 | + |
59 | 62 | /** |
| 63 | + * The 'storyboard' permission key can be given out to users |
| 64 | + * to enable them to review, edit, publish, and hide stories. |
| 65 | + * |
| 66 | + * By default, only sysops will be able to do this. |
| 67 | + */ |
| 68 | +$wgGroupPermissions['*' ]['storyboard'] = false; |
| 69 | +$wgGroupPermissions['user' ]['storyboard'] = false; |
| 70 | +$wgGroupPermissions['autoconfirmed']['storyboard'] = false; |
| 71 | +$wgGroupPermissions['bot' ]['storyboard'] = false; |
| 72 | +$wgGroupPermissions['sysop' ]['storyboard'] = true; |
| 73 | +$wgAvailableRights[] = 'storyboard'; |
| 74 | + |
| 75 | +/** |
60 | 76 | * Initialization function for the Storyboard extension. |
61 | 77 | */ |
62 | 78 | function efStoryboardSetup() { |
— | — | @@ -74,6 +90,15 @@ |
75 | 91 | ); |
76 | 92 | } |
77 | 93 | |
| 94 | +function efStoryboardSchemaUpdate() { |
| 95 | + global $wgExtNewTables, $egStoryboardDir; |
| 96 | + |
| 97 | + $wgExtNewTables[] = array( |
| 98 | + 'storyboard', |
| 99 | + $egStoryboardDir . 'Storyboard.sql' |
| 100 | + ); |
| 101 | +} |
| 102 | + |
78 | 103 | function efStoryboardStoryboardSetup() { |
79 | 104 | global $wgParser; |
80 | 105 | $wgParser->setHook( 'storyboard', array('TagStoryboard', 'render') ); |