Index: trunk/extensions/Storyboard/storyboard.sql |
— | — | @@ -7,7 +7,7 @@ |
8 | 8 | story_author_location VARCHAR(255) NOT NULL, |
9 | 9 | story_author_occupation VARCHAR(255) NOT NULL, |
10 | 10 | story_author_image VARCHAR(255) NULL, -- TODO: find out if this is an acceptible way to refer to an image |
11 | | - story_hit_count INT(8) unsigned NOT NULL, default '0', |
| 11 | + story_hit_count INT(8) unsigned NOT NULL default '0', |
12 | 12 | story_title VARCHAR(255) NOT NULL, |
13 | 13 | story_text MEDIUMBLOB NOT NULL, |
14 | 14 | story_modified CHAR(14) binary NOT NULL default '', |
Index: trunk/extensions/Storyboard/tags/Storysubmission/Storysubmission_body.php |
— | — | @@ -61,7 +61,7 @@ |
62 | 62 | |
63 | 63 | $defaultName = ''; |
64 | 64 | if ( $wgUser->isLoggedIn() ) { |
65 | | - $defaultName = strlen($wgUser->getRealName()) > 0 ? $wgUser->getRealName() : $wgUser->getName(); |
| 65 | + $defaultName = $wgUser->getRealName() !== '' ? $wgUser->getRealName() : $wgUser->getName(); |
66 | 66 | } |
67 | 67 | $formBody .= '<tr>' . |
68 | 68 | Html::element( 'td', array('width' => '100%'), wfMsg( 'storyboard-yourname' ) ) . |
— | — | @@ -152,8 +152,8 @@ |
153 | 153 | 'story_author_occupation' => $wgRequest->getText( 'occupation' ), |
154 | 154 | 'story_title' => $wgRequest->getText( 'storytitle' ), |
155 | 155 | 'story_text' => $wgRequest->getText( 'storytext' ), |
156 | | - 'story_created' => $dbw->timestamp(), |
157 | | - 'story_modified' => $dbw->timestamp(), |
| 156 | + 'story_created' => $dbw->timestamp( time() ), |
| 157 | + 'story_modified' => $dbw->timestamp( time() ), |
158 | 158 | ); |
159 | 159 | |
160 | 160 | // If the user is logged in, also store his user id. |