Changeset 2855

Show
Ignore:
Timestamp:
07/29/08 18:22:49 (4 months ago)
Author:
arvind
Message:

Added TrackRevisions boolean config directive to enable/disable revision histories globally

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/feature-revision-histories/lib/MT/Core.pm

    r2852 r2855  
    457457            'UseSQLite2'      => { default => 0, }, 
    458458            'UseJcodeModule'  => { default => 0, }, 
    459             'RevisioningDriver' => { default => 'Local' }, 
    460459            'DefaultTimezone' => { 
    461460                default => '0', 
     
    525524            'EnableAddressBook' => { default => 0 }, 
    526525            'SingleCommunity' => { default => 0 }, 
     526             
     527            # Revision History 
     528            'TrackRevisions'     => { default => 1 }, 
     529            'RevisioningDriver'  => { default => 'Local' }, 
    527530        }, 
    528531        upgrade_functions => \&load_upgrade_fns, 
  • branches/feature-revision-histories/lib/MT/Object.pm

    r2850 r2855  
    239239    # Because of the inheritance of MT::Entry by MT::Page, we need to do this here 
    240240    if($class->isa('MT::Revisable')) { 
    241         $class->install_revisioning(); 
     241        $class->init_revisioning(); 
    242242    } 
    243243 
  • branches/feature-revision-histories/lib/MT/Revisable.pm

    r2854 r2855  
    2828 
    2929sub _handle { 
     30    return 1 unless MT->config->TrackRevisions;  
     31     
    3032    my $method = ( caller(1) )[3]; 
    3133    $method =~ s/.*:://; 
     
    4547    my $props = $class->properties; 
    4648    my $datasource = $class->datasource; 
     49     
     50    return 1 unless MT->config->TrackRevisions; 
    4751     
    4852    $props->{column_defs}{current_revision} = {