Show
Ignore:
Timestamp:
06/17/07 03:15:31 (18 months ago)
Author:
ilmari
Message:

r22807@vesla: ilmari | 2007-06-17 02:04:48 +0100
Move the common categories/locales navbar display decision into the templates (fixes #214)

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/lib/OpenGuides.pm

    r1070 r1086  
    259259           && $self->get_cookie( "display_google_maps" ) ) { 
    260260        $tt_vars{display_google_maps} = 1; 
    261     } 
    262  
    263     # Should we include a standard list of categories or locales? 
    264     if ($config->enable_common_categories || $config->enable_common_locales) { 
    265         $tt_vars{common_catloc} = 1; 
    266         $tt_vars{common_categories} = $config->enable_common_categories; 
    267         $tt_vars{common_locales} = $config->enable_common_locales; 
    268         $tt_vars{catloc_link} = $config->script_url . $config->script_name 
    269                                 . "?id="; 
    270261    } 
    271262 
     
    671662    } 
    672663    $tt_vars{not_editable} = 1; 
    673     if ($config->enable_common_categories || $config->enable_common_locales) { 
    674         $tt_vars{common_catloc} = 1; 
    675         $tt_vars{common_categories} = $config->enable_common_categories; 
    676         $tt_vars{common_locales} = $config->enable_common_locales; 
    677         $tt_vars{catloc_link} = $config->script_url . $config->script_name 
    678                                 . "?id="; 
    679     } 
    680664    $tt_vars{recent_changes} = \%recent_changes; 
    681665    my %processing_args = (