From fb4b60c28b38a8849632990357cd241537acf58f Mon Sep 17 00:00:00 2001 From: Zsolt Udvari Date: Tue, 25 Oct 2011 05:36:31 +0000 Subject: [PATCH 1/2] - update to compatible with Smarty 3.1.x Changed files: CodeIgniter-lib-smarty.spec -> 1.3 Smarty_tpl.php -> 1.4 --- CodeIgniter-lib-smarty.spec | 4 ++-- Smarty_tpl.php | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CodeIgniter-lib-smarty.spec b/CodeIgniter-lib-smarty.spec index c391750..3e4cb94 100644 --- a/CodeIgniter-lib-smarty.spec +++ b/CodeIgniter-lib-smarty.spec @@ -3,13 +3,13 @@ %include /usr/lib/rpm/macros.php Summary: Use smarty template engine in CodeIgniter Name: CodeIgniter-lib-%{shortname} -Version: 1 +Version: 2 Release: 0.1 License: GPL Group: Development/Languages/PHP Source0: Smarty_tpl.php Requires: CodeIgniter >= 2.0.0 -Requires: php-Smarty >= 3.0 +Requires: php-Smarty >= 3.1 Requires: php-common >= 4:%{php_min_version} BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) diff --git a/Smarty_tpl.php b/Smarty_tpl.php index d7d7839..a21d3c9 100644 --- a/Smarty_tpl.php +++ b/Smarty_tpl.php @@ -10,18 +10,18 @@ class smarty_tpl extends Smarty { function smarty_tpl() { $this->Smarty(); // templates folder - $this->template_dir= APPPATH."views/templates"; + $this->setTemplateDir(APPPATH."views/templates"); // compiled templates folder - $this->compile_dir= APPPATH."views/templates_c"; + $this->setCompileDir(APPPATH."views/templates_c"); // cache folder - $this->cache_dir= APPPATH."views/cache"; + $this->setCacheDir(APPPATH."views/cache"); //config folder - $this->config_dir= APPPATH."views/config"; + $this->setConfigDir(APPPATH."views/config"); //plugins folder - $this->plugins_dir = array( + $this->setPluginsDir(array( "/usr/share/php/Smarty3/plugins/", "/usr/share/php/Smarty3/sysplugins/" - ); + )); // template recheck on $this->compile_check= true; -- 2.43.0 From f12e5adaa9f5f609f038afb9c2b4f0c3a839b60b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sat, 25 Jan 2020 14:57:33 +0100 Subject: [PATCH 2/2] - drop obsolete and outdated manual inclusion of rpm macros --- CodeIgniter-lib-smarty.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/CodeIgniter-lib-smarty.spec b/CodeIgniter-lib-smarty.spec index 3e4cb94..d66810f 100644 --- a/CodeIgniter-lib-smarty.spec +++ b/CodeIgniter-lib-smarty.spec @@ -1,6 +1,5 @@ %define php_min_version 5.2.4 %define shortname smarty -%include /usr/lib/rpm/macros.php Summary: Use smarty template engine in CodeIgniter Name: CodeIgniter-lib-%{shortname} Version: 2 -- 2.43.0