From 240079c16f67eb659f00ed97da1782a41072789a Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Sun, 27 Feb 2011 22:56:05 +0000 Subject: [PATCH] smarty.inc.php: - set $this->template->allow_php_tag = true instead of editing smarty/libs/Smarty.class.php after every smarty upgrade added smarty/smarty_version with: - a note about the current smarty version - a note about additional files not part of the smarty package git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@973 a1433add-5e2c-0410-b055-b7f2511e0802 --- smarty.inc.php | 1 + smarty/smarty_version | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 smarty/smarty_version diff --git a/smarty.inc.php b/smarty.inc.php index ce77ff01..a3e189ee 100644 --- a/smarty.inc.php +++ b/smarty.inc.php @@ -14,6 +14,7 @@ class PFASmarty { $this->template->template_dir = $incpath.'/templates'; $this->template->compile_dir = $incpath.'/templates_c'; $this->template->config_dir = $incpath.'/'.$this->template->config_dir; + $this->template->allow_php_tag = true; } public function assign($key, $value, $sanitise = true) { diff --git a/smarty/smarty_version b/smarty/smarty_version new file mode 100644 index 00000000..71733836 --- /dev/null +++ b/smarty/smarty_version @@ -0,0 +1,6 @@ +$Id$ + +Smarty version: 3.0.7 + +Additional files (not part of the official Smarty release): +- libs/plugins/modifier.needle.php