function getLastEditedInfo() { global $wgTitle; if (self::$mLastEditedInfo) { return self::$mLastEditedInfo; } $dbr = wfGetDB(DB_SLAVE); $bad = WikihowUser::getBotIDs(); $bad[] = 0; // filter out anons too, as per Jack $row = $dbr->selectRow('revision', array('rev_user', 'rev_user_text', 'rev_timestamp'), array('rev_user NOT IN (' . $dbr->makeList($bad) . ")", "rev_page" => $wgTitle->getArticleID()), __METHOD__, array("ORDER BY" => "rev_id DESC", "LIMIT" => 1)); $info->rev_user_text = $row->rev_user_text; $info->rev_user = $row->rev_user; $info->rev_timestamp = $row->rev_timestamp; self::$mLastEditedInfo = $info; return $info; }