* @return ResultWrapper
*/
function listRevisions() {
- global $wgContentHandlerNoDB;
+ global $wgContentHandlerUseDB;
$dbr = wfGetDB( DB_SLAVE );
'ar_comment', 'ar_len', 'ar_deleted', 'ar_rev_id', 'ar_sha1',
);
- if ( !$wgContentHandlerNoDB ) {
+ if ( $wgContentHandlerUseDB ) {
$fields[] = 'ar_content_format';
$fields[] = 'ar_content_model';
}
'fa_user',
'fa_user_text',
'fa_timestamp',
- 'fa_deleted' ),
+ 'fa_deleted',
+ 'fa_sha1' ),
array( 'fa_name' => $this->title->getDBkey() ),
__METHOD__,
array( 'ORDER BY' => 'fa_timestamp DESC' ) );
* @return Revision
*/
function getRevision( $timestamp ) {
- global $wgContentHandlerNoDB;
+ global $wgContentHandlerUseDB;
$dbr = wfGetDB( DB_SLAVE );
'ar_sha1',
);
- if ( !$wgContentHandlerNoDB ) {
+ if ( $wgContentHandlerUseDB ) {
$fields[] = 'ar_content_format';
$fields[] = 'ar_content_model';
}
* @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();
'ar_len',
'ar_sha1');
- if ( !$wgContentHandlerNoDB ) {
+ if ( $wgContentHandlerUseDB ) {
$fields[] = 'ar_content_format';
$fields[] = 'ar_content_model';
}