From a0c8a1a7aab63d021f668d754111a1cc2372c89f Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 9 Jan 2006 01:10:41 +0000 Subject: [PATCH] New ISSO2 set() method for init --- includes/init.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/includes/init.php b/includes/init.php index d889884..cbc981f 100644 --- a/includes/init.php +++ b/includes/init.php @@ -41,14 +41,13 @@ define('ISSO_CHECK_POST_REFERER', 1); require_once($issopath . 'kernel.php'); $viewsvn = new Shared_Object_Framework(); -$viewsvn->application = 'ViewSVN'; -$viewsvn->apppath = $viewsvn->fetch_sourcepath(getcwd()); -$viewsvn->appversion = '[#]version[#]'; -$viewsvn->debug = $debug; -$viewsvn->sourcepath = $viewsvn->fetch_sourcepath($issopath); +$viewsvn->set('application', 'ViewSVN'); +$viewsvn->set('apppath', getcwd()); +$viewsvn->set('appversion', '[#]version[#]'); +$viewsvn->set('debug', $debug); +$viewsvn->set('sourcepath', $issopath); $viewsvn->load('functions', 'funct', true); -$viewsvn->exec_sanitize_data(); // ################################################################### // localization stystem @@ -57,7 +56,8 @@ $viewsvn->load('localize', 'lang', true); // ################################################################### // handle template system $viewsvn->load('template_fs', 'template', true); -$template->templatedir = $viewsvn->fetch_sourcepath('./templates/' . $templatedir); +$template->set('templatedir', './templates/' . $templatedir); +$template->set('extension', 'tpl'); // ################################################################### // imaginary reporter -- 2.43.5