Index: admin/templates.php
===================================================================
--- admin/templates.php (revision 8546)
+++ admin/templates.php (working copy)
@@ -874,19 +874,37 @@
"
";
}
- $templatesoutput.= "\t
\n"
- ."\tgTview("Export Template")."\" >"
- ."
\n"
- ."gTview("Import template")."\" >"
- ."
\n"
- ."\t
\n"
- ."gTview("Copy Template")."\" "
- ."onclick=\"javascript: copyprompt('".$clang->gT("Please enter the name for the copied template:")."', '".$clang->gT("copy_of_")."$templatename', '$templatename', 'copy')\">"
- ."
"
- ."\n"
- ."
\n" - ."\n" - ."
\n"; - } +} +else +{ +@fwrite ($fnew, getHeader()); +foreach ($cssfiles as $cssfile) +{ + $myoutput=str_replace($cssfile['name'],$cssfile['name']."?t=$time",$myoutput); +} +foreach($myoutput as $line) { + @fwrite($fnew, $line); +} +@fclose($fnew); +$langdir_template="$publicurl/locale/".$_SESSION['adminlang']."/help"; +$templatesoutput.= "\n"."\n" +."\n"; +} +} + function doreplacement($file) { //Produce sample page from template file $output=array(); foreach(file($file) as $op) {