-php notices
[lhc/web/wiklou.git] / includes / SpecialUndelete.php
index 736b828..09ef867 100644 (file)
@@ -40,7 +40,7 @@ class PageArchive {
         *
         * @return ResultWrapper
         */
-       /* static */ function &listAllPages() {
+       /* static */ function listAllPages() {
                $dbr =& wfGetDB( DB_SLAVE );
                $archive = $dbr->tableName( 'archive' );
 
@@ -56,7 +56,7 @@ class PageArchive {
         *
         * @return ResultWrapper
         */
-       function &listRevisions() {
+       function listRevisions() {
                $dbr =& wfGetDB( DB_SLAVE );
                return $dbr->resultObject( $dbr->select( 'archive',
                        array( 'ar_minor_edit', 'ar_timestamp', 'ar_user', 'ar_user_text', 'ar_comment' ),
@@ -451,7 +451,7 @@ class UndeleteForm {
 
                                if (NS_IMAGE == $this->mTargetObj->getNamespace()) {
                                        /* refresh image metadata cache */
-                                       new Image( $this->mTargetObj->getText(), true );
+                                       new Image( $this->mTargetObj );
                                }
 
                                return true;