Tadashi Okoshi
slash****@users*****
2005年 6月 25日 (土) 03:24:27 JST
Index: affelio/lib/Affelio/App/Admin/EditTemplates.pm diff -u affelio/lib/Affelio/App/Admin/EditTemplates.pm:1.3 affelio/lib/Affelio/App/Admin/EditTemplates.pm:1.4 --- affelio/lib/Affelio/App/Admin/EditTemplates.pm:1.3 Tue Jun 21 17:58:34 2005 +++ affelio/lib/Affelio/App/Admin/EditTemplates.pm Sat Jun 25 03:24:27 2005 @@ -6,7 +6,7 @@ # http://affelio.jp/ (Japan) # http://affelio.jp/ (USA and other area) # -# $Id: EditTemplates.pm,v 1.3 2005/06/21 08:58:34 slash5234 Exp $ +# $Id: EditTemplates.pm,v 1.4 2005/06/24 18:24:27 slash5234 Exp $ package Affelio::App::Admin::EditTemplates; { @@ -122,6 +122,8 @@ if($from_template_file =~ /body.*\.aftmpl/){ #Body template files.... $template_name =~ s/body_//g; + }else{ + $template_name = "_" . $template_name; } my $output_contents =""; @@ -175,9 +177,9 @@ $ENV{PATH} = "/bin:/usr/bin"; debug_print("rebuild: header+left => Header"); - system("cat $af->{site__fs_root}/templates_dyn/header.tmpl $af->{site__fs_root}/templates_dyn/left.tmpl > $af->{site__fs_root}/templates_dyn/Header.tmpl"); + system("cat $af->{site__fs_root}/templates_dyn/_header.tmpl $af->{site__fs_root}/templates_dyn/_left.tmpl > $af->{site__fs_root}/templates_dyn/Header.tmpl"); debug_print("rebuild: right+footer => Footer"); - system("cat $af->{site__fs_root}/templates_dyn/right.tmpl $af->{site__fs_root}/templates_dyn/footer.tmpl > $af->{site__fs_root}/templates_dyn/Footer.tmpl"); + system("cat $af->{site__fs_root}/templates_dyn/_right.tmpl $af->{site__fs_root}/templates_dyn/_footer.tmpl > $af->{site__fs_root}/templates_dyn/Footer.tmpl"); debug_print("rebuild: end."); }