Changeset 1045
- Timestamp:
- 06/09/07 17:49:43 (18 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 modified
-
lib/OpenGuides.pm (modified) (1 diff)
-
newpage.cgi (modified) (1 diff)
-
t/58_recent_changes_navbar.t (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/OpenGuides.pm
r1044 r1045 629 629 } 630 630 $tt_vars{not_editable} = 1; 631 if ($config->enable_common_categories || $config->enable_common_locales) { 632 $tt_vars{common_catloc} = 1; 633 $tt_vars{common_categories} = $config->enable_common_categories; 634 $tt_vars{common_locales} = $config->enable_common_locales; 635 $tt_vars{catloc_link} = $config->script_url . $config->script_name 636 . "?id="; 637 } 631 638 $tt_vars{recent_changes} = \%recent_changes; 632 639 my %processing_args = ( -
trunk/newpage.cgi
r752 r1045 31 31 32 32 sub show_form { 33 my %tt_vars = ( 34 not_editable => 1, 35 not_deletable => 1, 36 deter_robots => 1, 37 disallowed_chars => \@badchars, 38 pagename => $pagename, 39 ); 40 if ($config->enable_common_categories || $config->enable_common_locales) { 41 $tt_vars{common_catloc} = 1; 42 $tt_vars{common_categories} = $config->enable_common_categories; 43 $tt_vars{common_locales} = $config->enable_common_locales; 44 $tt_vars{catloc_link} = $config->script_url . $config->script_name 45 . "?id="; 46 } 33 47 print OpenGuides::Template->output( wiki => $wiki, 34 48 config => $config, 35 49 template => "newpage.tt", 36 vars => { 37 not_editable => 1, 38 not_deletable => 1, 39 deter_robots => 1, 40 disallowed_chars => \@badchars, 41 pagename => $pagename } 50 vars => \%tt_vars, 42 51 ); 43 52 }
