git-svn-id: http://xe-core.googlecode.com/svn/trunk@1269 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-04-23 02:03:14 +00:00
parent 6f8e1fd915
commit 54442e2e18
22 changed files with 34 additions and 43 deletions

View file

@ -29,8 +29,7 @@
Context::set("tpl_path", $tpl_path);
require_once("./classes/template/TemplateHandler.class.php");
$oTemplate = new TemplateHandler();
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}

View file

@ -29,8 +29,7 @@
Context::set("tpl_path", $tpl_path);
require_once("./classes/template/TemplateHandler.class.php");
$oTemplate = new TemplateHandler();
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}

View file

@ -33,8 +33,7 @@
$emoticon_list = FileHandler::readDir($tpl_path.'/images');
Context::set('emoticon_list', $emoticon_list);
require_once("./classes/template/TemplateHandler.class.php");
$oTemplate = new TemplateHandler();
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}

View file

@ -29,8 +29,7 @@
Context::set("tpl_path", $tpl_path);
require_once("./classes/template/TemplateHandler.class.php");
$oTemplate = new TemplateHandler();
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}

View file

@ -29,8 +29,7 @@
Context::set("tpl_path", $tpl_path);
require_once("./classes/template/TemplateHandler.class.php");
$oTemplate = new TemplateHandler();
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}
@ -64,8 +63,7 @@
if($gallery_info->gallery_style == "list") $tpl_file = 'list_gallery.html';
else $tpl_file = 'slide_gallery.html';
require_once("./classes/template/TemplateHandler.class.php");
$oTemplate = new TemplateHandler();
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}

View file

@ -29,8 +29,7 @@
Context::set("tpl_path", $tpl_path);
require_once("./classes/template/TemplateHandler.class.php");
$oTemplate = new TemplateHandler();
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}

View file

@ -29,8 +29,7 @@
Context::set("tpl_path", $tpl_path);
require_once("./classes/template/TemplateHandler.class.php");
$oTemplate = new TemplateHandler();
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}

View file

@ -34,8 +34,7 @@
Context::set("tpl_path", $tpl_path);
require_once("./classes/template/TemplateHandler.class.php");
$oTemplate = new TemplateHandler();
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}

View file

@ -27,8 +27,7 @@
$tpl_path = $this->component_path.'tpl';
$tpl_file = 'popup.html';
require_once("./classes/template/TemplateHandler.class.php");
$oTemplate = new TemplateHandler();
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}

View file

@ -29,8 +29,7 @@
Context::set("tpl_path", $tpl_path);
require_once("./classes/template/TemplateHandler.class.php");
$oTemplate = new TemplateHandler();
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}

View file

@ -29,8 +29,7 @@
Context::set("tpl_path", $tpl_path);
require_once("./classes/template/TemplateHandler.class.php");
$oTemplate = new TemplateHandler();
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}

View file

@ -27,8 +27,7 @@
$tpl_path = $this->component_path.'tpl';
$tpl_file = 'popup.html';
require_once("./classes/template/TemplateHandler.class.php");
$oTemplate = new TemplateHandler();
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}

View file

@ -54,8 +54,7 @@
$oFileController = &getController('file');
$oFileController->setUploadEnable($upload_target_srl);
}
require_once("./classes/template/TemplateHandler.class.php");
$oTemplate = new TemplateHandler();
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}