From: Reedy Date: Tue, 16 Oct 2012 21:31:07 +0000 (+0100) Subject: Special:Undelete used non existant global wgContentHandlerNoDB X-Git-Tag: 1.31.0-rc.0~21992^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=510b339378aa31b4702555832524e8a73c78728e;p=lhc%2Fweb%2Fwiklou.git Special:Undelete used non existant global wgContentHandlerNoDB Swap $wgContentHandlerNoDB for $wgContentHandlerUseDB Change-Id: If2b4c018539c474b24c869aa16318c91b0d011a6 --- diff --git a/includes/specials/SpecialUndelete.php b/includes/specials/SpecialUndelete.php index 036b867153..4c38a781ba 100644 --- a/includes/specials/SpecialUndelete.php +++ b/includes/specials/SpecialUndelete.php @@ -121,7 +121,7 @@ class PageArchive { * @return ResultWrapper */ function listRevisions() { - global $wgContentHandlerNoDB; + global $wgContentHandlerUseDB; $dbr = wfGetDB( DB_SLAVE ); @@ -130,7 +130,7 @@ class PageArchive { 'ar_comment', 'ar_len', 'ar_deleted', 'ar_rev_id', 'ar_sha1', ); - if ( !$wgContentHandlerNoDB ) { + if ( $wgContentHandlerUseDB ) { $fields[] = 'ar_content_format'; $fields[] = 'ar_content_model'; } @@ -194,7 +194,7 @@ class PageArchive { * @return Revision */ function getRevision( $timestamp ) { - global $wgContentHandlerNoDB; + global $wgContentHandlerUseDB; $dbr = wfGetDB( DB_SLAVE ); @@ -213,7 +213,7 @@ class PageArchive { 'ar_sha1', ); - if ( !$wgContentHandlerNoDB ) { + if ( $wgContentHandlerUseDB ) { $fields[] = 'ar_content_format'; $fields[] = 'ar_content_model'; } @@ -435,7 +435,7 @@ class PageArchive { * @return Status, containing the number of revisions restored on success */ private function undeleteRevisions( $timestamps, $unsuppress = false, $comment = '' ) { - global $wgContentHandlerNoDB; + global $wgContentHandlerUseDB; if ( wfReadOnly() ) { throw new ReadOnlyError(); @@ -510,7 +510,7 @@ class PageArchive { 'ar_len', 'ar_sha1'); - if ( !$wgContentHandlerNoDB ) { + if ( $wgContentHandlerUseDB ) { $fields[] = 'ar_content_format'; $fields[] = 'ar_content_model'; }