From 3585b0c8cf05c7413c17e0a9b91c937d7ccfa968 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Wed, 2 Aug 2006 20:26:12 +0000 Subject: [PATCH] avoid droppings in plugins/ git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@775 839d8a87-29fc-0310-9880-83ba4fa771e5 --- modules/carnet.php | 2 ++ plugins/function.display_ical.php => modules/carnet/smarty.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) rename plugins/function.display_ical.php => modules/carnet/smarty.php (97%) diff --git a/modules/carnet.php b/modules/carnet.php index fc9710f..0aa52b3 100644 --- a/modules/carnet.php +++ b/modules/carnet.php @@ -335,7 +335,9 @@ class CarnetModule extends PLModule function handler_ical(&$page) { + require_once dirname(__FILE__).'/carnet/smarty.php'; $page->changeTpl('carnet/calendar.tpl', NO_SKIN); + $page->register_function('display_ical', 'display_ical'); $res = XDB::iterRow( 'SELECT u.prenom, diff --git a/plugins/function.display_ical.php b/modules/carnet/smarty.php similarity index 97% rename from plugins/function.display_ical.php rename to modules/carnet/smarty.php index 1caf15f..4a709f7 100644 --- a/plugins/function.display_ical.php +++ b/modules/carnet/smarty.php @@ -19,7 +19,7 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************/ -function smarty_function_display_ical($param, &$smarty) { +function display_ical($param) { $txt = ''; if (isset($param['name'])) $txt .= strtoupper($param['name']); -- 2.1.4