Index: trunk/phase3/includes/Revision.php |
— | — | @@ -58,7 +58,7 @@ |
59 | 59 | * @access public |
60 | 60 | * @static |
61 | 61 | */ |
62 | | - public static function loadFromId( &$db, $id ) { |
| 62 | + public static function loadFromId( $db, $id ) { |
63 | 63 | return Revision::loadFromConds( $db, |
64 | 64 | array( 'page_id=rev_page', |
65 | 65 | 'rev_id' => intval( $id ) ) ); |
— | — | @@ -98,7 +98,7 @@ |
99 | 99 | * @access public |
100 | 100 | * @static |
101 | 101 | */ |
102 | | - public static function loadFromTitle( &$db, $title, $id = 0 ) { |
| 102 | + public static function loadFromTitle( $db, $title, $id = 0 ) { |
103 | 103 | if( $id ) { |
104 | 104 | $matchId = intval( $id ); |
105 | 105 | } else { |
— | — | @@ -124,7 +124,7 @@ |
125 | 125 | * @access public |
126 | 126 | * @static |
127 | 127 | */ |
128 | | - public static function loadFromTimestamp( &$db, &$title, $timestamp ) { |
| 128 | + public static function loadFromTimestamp( $db, $title, $timestamp ) { |
129 | 129 | return Revision::loadFromConds( |
130 | 130 | $db, |
131 | 131 | array( 'rev_timestamp' => $db->timestamp( $timestamp ), |
— | — | @@ -185,7 +185,7 @@ |
186 | 186 | * @access public |
187 | 187 | * @static |
188 | 188 | */ |
189 | | - public static function fetchAllRevisions( &$title ) { |
| 189 | + public static function fetchAllRevisions( $title ) { |
190 | 190 | return Revision::fetchFromConds( |
191 | 191 | wfGetDB( DB_SLAVE ), |
192 | 192 | array( 'page_namespace' => $title->getNamespace(), |
— | — | @@ -203,7 +203,7 @@ |
204 | 204 | * @access public |
205 | 205 | * @static |
206 | 206 | */ |
207 | | - public static function fetchRevision( &$title ) { |
| 207 | + public static function fetchRevision( $title ) { |
208 | 208 | return Revision::fetchFromConds( |
209 | 209 | wfGetDB( DB_SLAVE ), |
210 | 210 | array( 'rev_id=page_latest', |
— | — | @@ -710,7 +710,7 @@ |
711 | 711 | * @param Database $dbw |
712 | 712 | * @return int |
713 | 713 | */ |
714 | | - public function insertOn( &$dbw ) { |
| 714 | + public function insertOn( $dbw ) { |
715 | 715 | global $wgDefaultExternalStore; |
716 | 716 | |
717 | 717 | wfProfileIn( __METHOD__ ); |
— | — | @@ -850,7 +850,7 @@ |
851 | 851 | * @param bool $minor |
852 | 852 | * @return Revision |
853 | 853 | */ |
854 | | - public static function newNullRevision( &$dbw, $pageId, $summary, $minor ) { |
| 854 | + public static function newNullRevision( $dbw, $pageId, $summary, $minor ) { |
855 | 855 | wfProfileIn( __METHOD__ ); |
856 | 856 | |
857 | 857 | $current = $dbw->selectRow( |