--- templates.php 2010-03-09 01:40:00.000000000 +0530 +++ /var/www/limesurvey1/admin/templates.php 2010-03-27 13:44:58.900728052 +0530 @@ -980,7 +980,7 @@ if (is_template_editable($templatename)= ."" ."gT("Are you sure you want to delete this file?","js")."')\""; if (!is_template_editable($templatename)) { - $templatesoutput.= " style='color: #BBBBBB;' disabled='disabled' alt='".$clang->gT("Files in a standard template cannot be deleted.")."'"; +$templatesoutput.= " style='color: #BBBBBB;' disabled='disabled' alt='".$clang->gT("Files in a standard template cannot be deleted.")."'"; } $templatesoutput.= " />\n" ."\n" @@ -1026,22 +1026,26 @@ $templatesoutput.= "\t
Embedded Frame\n" -."

\n"; +if(!$fnew){ + echo "

"; + echo sprintf($clang->gT("Please change the directory permission to writable for the directory %s"), $tempdir); + echo "

"; } +else +{ +$templatesoutput.= "

\n"."\n"."

\n"; +}} function doreplacement($file) { //Produce sample page from template file $output=array();