dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4bc9769
)
Include timestamps in generated initial pages
author
Brion Vibber
<brion@users.mediawiki.org>
Fri, 21 Nov 2003 01:52:29 +0000
(
01:52
+0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Fri, 21 Nov 2003 01:52:29 +0000
(
01:52
+0000)
install.php
patch
|
blob
|
history
diff --git
a/install.php
b/install.php
index
693a577
..
8fe1ab5
100644
(file)
--- a/
install.php
+++ b/
install.php
@@
-182,21
+182,24
@@
function populatedata() {
$sql = "DELETE FROM cur";
wfQuery( $sql, DB_WRITE, $fname );
$sql = "DELETE FROM cur";
wfQuery( $sql, DB_WRITE, $fname );
+ $now = wfTimestampNow();
+ $won = wfInvertTimestamp( $now );
+
$sql = "INSERT INTO cur (cur_namespace,cur_title,cur_text," .
$sql = "INSERT INTO cur (cur_namespace,cur_title,cur_text," .
- "cur_restrictions) VALUES ({$wns},'{$ulp}','" .
- wfStrencode( wfMsg
NoDB( "uploadlogpagetext" ) ) . "','sysop
')";
+ "cur_restrictions
,cur_timestamp,inverse_timestamp,cur_touched
) VALUES ({$wns},'{$ulp}','" .
+ wfStrencode( wfMsg
( "uploadlogpagetext" ) ) . "','sysop','$now','$won','$now
')";
wfQuery( $sql, DB_WRITE, $fname );
$sql = "INSERT INTO cur (cur_namespace,cur_title,cur_text," .
wfQuery( $sql, DB_WRITE, $fname );
$sql = "INSERT INTO cur (cur_namespace,cur_title,cur_text," .
- "cur_restrictions) VALUES ({$wns},'{$dlp}','" .
- wfStrencode( wfMsg
NoDB( "dellogpagetext" ) ) . "','sysop
')";
+ "cur_restrictions
,cur_timestamp,inverse_timestamp,cur_touched
) VALUES ({$wns},'{$dlp}','" .
+ wfStrencode( wfMsg
( "dellogpagetext" ) ) . "','sysop','$now','$won','$now
')";
wfQuery( $sql, DB_WRITE, $fname );
$titleobj = Title::newFromText( wfMsgNoDB( "mainpage" ) );
$title = $titleobj->getDBkey();
wfQuery( $sql, DB_WRITE, $fname );
$titleobj = Title::newFromText( wfMsgNoDB( "mainpage" ) );
$title = $titleobj->getDBkey();
- $sql = "INSERT INTO cur (cur_namespace,cur_title,cur_text) " .
+ $sql = "INSERT INTO cur (cur_namespace,cur_title,cur_text
,cur_timestamp,inverse_timestamp,cur_touched
) " .
"VALUES (0,'$title','" .
"VALUES (0,'$title','" .
- wfStrencode( wfMsg
NoDB( "mainpagetext" ) ) . "
')";
+ wfStrencode( wfMsg
( "mainpagetext" ) ) . "','$now','$won','$now
')";
wfQuery( $sql, DB_WRITE, $fname );
initialiseMessages();
wfQuery( $sql, DB_WRITE, $fname );
initialiseMessages();