From 5e3a1a62043cc4602f5fc4fb871d09da65b5a277 Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Sat, 29 Sep 2012 10:23:09 +0200 Subject: Some adaptations required for Smarty3 --- include/main.php | 3 ++- smarty/templates/rpmphp/all.tpl | 6 +++--- smarty/templates/rpmphp/index.tpl | 2 +- smarty/templates/rpmphp/main.tpl | 4 ++-- smarty/templates/rpmphp/rpm.tpl | 6 +++--- smarty/templates/rpmphp/zoom.tpl | 4 ++-- zoom.php | 6 +++++- 7 files changed, 18 insertions(+), 13 deletions(-) diff --git a/include/main.php b/include/main.php index 8134307..e54f6f9 100644 --- a/include/main.php +++ b/include/main.php @@ -38,7 +38,8 @@ define('RPMPHP_VERSION', '1.0.0-dev'); require 'config.php'; if (!defined('CLIONLY')) { - include 'Smarty2/Smarty.class.php'; + //ACTHUNG: Smarty3! + include 'Smarty/Smarty.class.php'; $smarty = new Smarty(); diff --git a/smarty/templates/rpmphp/all.tpl b/smarty/templates/rpmphp/all.tpl index 8d9c20a..9b84373 100644 --- a/smarty/templates/rpmphp/all.tpl +++ b/smarty/templates/rpmphp/all.tpl @@ -22,7 +22,7 @@
- Filter {$type|upper} packages + Filter{if isset($type)} {$type|upper}{/if} packages