Index: trunk/admin/config/addtheme_templates.php =================================================================== diff -u -r2536 -r2569 --- trunk/admin/config/addtheme_templates.php (.../addtheme_templates.php) (revision 2536) +++ trunk/admin/config/addtheme_templates.php (.../addtheme_templates.php) (revision 2569) @@ -32,6 +32,7 @@ } $p = $path.$pathchar; /*Start looking for the root flag file */ + if( !isset($pathtoroot) ) $pathtoroot = ''; while(!strlen($pathtoroot) && strlen($p)) { $sub = substr($p,strlen($pathchar)*-1);