Index: trunk/extensions/Storyboard/tags/Storysubmission/Storysubmission_body.php |
— | — | @@ -53,7 +53,7 @@ |
54 | 54 | global $egStoryboardScriptPath, $egStorysubmissionWidth, $egStoryboardMaxStoryLen, $egStoryboardMinStoryLen; |
55 | 55 | |
56 | 56 | $maxLen = array_key_exists( 'maxlength', $args ) && is_int( $args['maxlength'] ) ? $args['maxlength'] : $egStoryboardMaxStoryLen; |
57 | | - $minLen = array_key_exists( 'minlength', $args ) && is_int( $args['minlength'] ) ? $args['minlength'] : $egStoryboardMinStoryLen; |
| 57 | + $minLen = array_key_exists( 'minlength', $args ) && is_int( $args['minlength'] ) ? $args['minlength'] : $egStoryboardMinStoryLen; |
58 | 58 | |
59 | 59 | // Loading a seperate JS file would be overkill for just these 3 lines, and be bad for performance. |
60 | 60 | $parser->getOutput()->addHeadItem( |
— | — | @@ -165,7 +165,7 @@ |
166 | 166 | 'maxlength' => 255, |
167 | 167 | 'minlength' => 2, |
168 | 168 | 'remote' => "$wgScriptPath/api.php?format=json&action=storyexists" |
169 | | - ) |
| 169 | + ) |
170 | 170 | ) . '</td></tr>'; |
171 | 171 | |
172 | 172 | $formBody .= '<tr><td colspan="2">' . |
Index: trunk/extensions/Storyboard/specials/Story/Story_body.php |
— | — | @@ -118,7 +118,7 @@ |
119 | 119 | |
120 | 120 | if ( $wgUser->isAllowed( 'storyreview' ) ) { |
121 | 121 | global $wgTitle; |
122 | | - $wgOut->addWikiMsg( |
| 122 | + $wgOut->addWikiMsg( |
123 | 123 | 'storyboard-canedit', |
124 | 124 | $wgTitle->getFullURL( array( 'action' => 'edit' ) ) |
125 | 125 | ); |
Index: trunk/extensions/Storyboard/specials/StoryReview/StoryReview_body.php |
— | — | @@ -56,7 +56,7 @@ |
57 | 57 | |
58 | 58 | $unpublished = htmlspecialchars( wfMsg( 'storyboard-unpublished' ) ); |
59 | 59 | $published = htmlspecialchars( wfMsg( 'storyboard-published' ) ); |
60 | | - $hidden = htmlspecialchars( wfMsg( 'storyboard-hidden' ) ); |
| 60 | + $hidden = htmlspecialchars( wfMsg( 'storyboard-hidden' ) ); |
61 | 61 | |
62 | 62 | $html = $this->getTabHtml( $dbr, Storyboard_STORY_UNPUBLISHED, $unpublished ); |
63 | 63 | $html .= $this->getTabHtml( $dbr, Storyboard_STORY_PUBLISHED, $published ); |
— | — | @@ -156,11 +156,11 @@ |
157 | 157 | |
158 | 158 | if ( $storyState != Storyboard_STORY_UNPUBLISHED ) { |
159 | 159 | $buttons[] = $this->getStateActionButton( $story->story_id, 'unpublish', 'storyboard-unpublish' ); |
160 | | - } |
| 160 | + } |
161 | 161 | |
162 | 162 | if ( $storyState != Storyboard_STORY_HIDDEN ) { |
163 | 163 | $buttons[] = $this->getStateActionButton( $story->story_id, 'hide', 'storyboard-hide' ); |
164 | | - } |
| 164 | + } |
165 | 165 | |
166 | 166 | $buttons[] = <<<EOT |
167 | 167 | <button type="button" onclick="window.location='$editUrl'">$editMsg</button> |
Index: trunk/extensions/Storyboard/specials/StorySubmission/StorySubmission_body.php |
— | — | @@ -22,10 +22,10 @@ |
23 | 23 | public function execute( $title ) { |
24 | 24 | global $wgOut, $wgRequest, $wgUser; |
25 | 25 | |
26 | | - if ( $wgRequest->wasPosted() && |
| 26 | + if ( $wgRequest->wasPosted() && |
27 | 27 | ( $wgUser->matchEditToken( $wgRequest->getVal( 'wpStoryEditToken' ) ) || !$wgUser->isLoggedIn() ) |
28 | 28 | ) { |
29 | | - $title = $wgRequest->getText( 'storytitle' ); |
| 29 | + $title = $wgRequest->getText( 'storytitle' ); |
30 | 30 | |
31 | 31 | // This might happen when the user has javascript disabled, or something in the client side validation breaks down. |
32 | 32 | $exists = ApiStoryExists::StoryExists( array( 'storytitle' => $title ) ); |
— | — | @@ -64,11 +64,11 @@ |
65 | 65 | // If the user is logged in, also store his user id. |
66 | 66 | if ( $wgUser->isLoggedIn() ) { |
67 | 67 | $story[ 'story_author_id' ] = $wgUser->getId(); |
68 | | - } |
| 68 | + } |
69 | 69 | |
70 | 70 | // TODO: email confirmation would be nice |
71 | 71 | |
72 | | - $dbw->insert( 'storyboard', $story ); |
| 72 | + $dbw->insert( 'storyboard', $story ); |
73 | 73 | } |
74 | 74 | |
75 | 75 | private function displayResult( $wasSaved, $title ) { |
— | — | @@ -78,7 +78,7 @@ |
79 | 79 | $wgOut->setPageTitle( wfMsg( 'storyboard-submissioncomplete' ) ); |
80 | 80 | |
81 | 81 | // TODO: magically get location of the page containing stories |
82 | | - $wgOut->addWikiMsg( 'storyboard-createdsucessfully', $wgTitle->getFullURL() ); |
| 82 | + $wgOut->addWikiMsg( 'storyboard-createdsucessfully', $wgTitle->getFullURL() ); |
83 | 83 | } else { |
84 | 84 | $wgOut->setPageTitle( wfMsg( 'storyboard-submissionincomplete' ) ); |
85 | 85 | |
— | — | @@ -86,7 +86,7 @@ |
87 | 87 | |
88 | 88 | // Let's not give a null link to people with no JS. |
89 | 89 | // TODO: change this to the last page somehow |
90 | | - $fallBackUrl = Title::newMainPage()->getFullURL(); |
| 90 | + $fallBackUrl = Title::newMainPage()->getFullURL(); |
91 | 91 | $wgOut->addHtml( "<a href='$fallBackUrl' onclick='history.go(-1); return false;'>" . wfMsg( 'storyboard-changetitle' ) . '</a>' ); |
92 | 92 | } |
93 | 93 | } |
Index: trunk/extensions/Storyboard/api/ApiStoryExists.php |
— | — | @@ -56,8 +56,8 @@ |
57 | 57 | // If there is a way of doing this via the API, this should oviously be changed. |
58 | 58 | die( $exists ? 'false' : 'true' ); |
59 | 59 | |
60 | | - //$this->getResult()->setIndexedTagName( $result, 'story' ); |
61 | | - //$this->getResult()->addValue( null, $this->getModuleName(), $result ); |
| 60 | + // $this->getResult()->setIndexedTagName( $result, 'story' ); |
| 61 | + // $this->getResult()->addValue( null, $this->getModuleName(), $result ); |
62 | 62 | } |
63 | 63 | |
64 | 64 | public static function StoryExists( array $params ) { |
— | — | @@ -87,7 +87,7 @@ |
88 | 88 | ), |
89 | 89 | 'currentid' => array( |
90 | 90 | ApiBase :: PARAM_TYPE => 'integer', |
91 | | - ), |
| 91 | + ), |
92 | 92 | ); |
93 | 93 | } |
94 | 94 | |