From: Sam Reed Date: Thu, 4 Aug 2011 23:25:34 +0000 (+0000) Subject: Adding Revision::newFromRow() function as alias for new Revision() X-Git-Tag: 1.31.0-rc.0~28424 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=71ce734b14a609a1fc73e8114cbc565e1b4cfc35;p=lhc%2Fweb%2Fwiklou.git Adding Revision::newFromRow() function as alias for new Revision() More consistent with how we do stuff everywhere else --- diff --git a/includes/Revision.php b/includes/Revision.php index 11b5722a68..65f9bafa41 100644 --- a/includes/Revision.php +++ b/includes/Revision.php @@ -121,6 +121,14 @@ class Revision { return new self( $attribs ); } + /** + * @param $row + * @return Revision + */ + public static function newFromRow( $row ) { + return new self( $row ); + } + /** * Load a page revision from a given revision ID number. * Returns null if no such revision can be found.