Connecting to the database may help, but I'm guessing this function isn't used if no-one has complained.
This commit is contained in:
parent
ae8554c45b
commit
e62c051e0a
1 changed files with 1 additions and 0 deletions
|
|
@ -802,6 +802,7 @@ class Revision {
|
|||
* @param integer $id
|
||||
*/
|
||||
static function getTimestampFromID( $id ) {
|
||||
$dbr =& wfGetDB( DB_SLAVE );
|
||||
$timestamp = $dbr->selectField( 'revision', 'rev_timestamp',
|
||||
array( 'rev_id' => $id ), __METHOD__ );
|
||||
if ( $timestamp === false ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue