function loadHistoryItem($id) { $dbr = wfGetDB(DB_SLAVE); // Load the row. $row = $dbr->selectRow('abuse_filter_history', '*', array('afh_id' => $id), __METHOD__); return AbuseFilter::translateFromHistory($row); }