Changeset 247 for trunk/RebuildQueue

Show
Ignore:
Timestamp:
05/05/07 01:29:31 (3 years ago)
Author:
jallen
Message:

Fixed an issue with the CMS override that caused it to confer the CMS override config value of Blog ID 1 for any blog. The issue was that $blog_id was being set to the scalar value of @_ instead of the first element.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/RebuildQueue/plugins/RebuildQueue/lib/RebuildQueue/Plugin.pm

    r246 r247  
    9292 
    9393        my $override = $plugin->blog_cms_override($app->param('blog_id')); 
    94  
     94print STDERR <<EOF; 
     95JAY: Override: $override 
     96JAY: Blog ID: ${\$app->param('blog_id')} 
     97JAY: Mode: ${\$app->mode} 
     98EOF 
    9599    # For CMS, disable in certain situations... 
    96100    if ($app->isa('MT::App::CMS') && $override) { 
     
    280284sub blog_cms_override { 
    281285    my $plugin = shift; 
    282     my ($blog_id) = @_ || ''; 
     286    my $blog_id = shift || ''; 
     287print STDERR "In blog_cms_override with blog ID $blog_id\n"; 
    283288    $plugin->get_config_value('rebuildq_cms_override', 'blog:'.$blog_id) ? 1 : 0; 
    284289}