From: x2000habouzit Date: Wed, 2 Aug 2006 20:26:12 +0000 (+0000) Subject: avoid droppings in plugins/ X-Git-Tag: xorg/0.9.11~140 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=3585b0c8cf05c7413c17e0a9b91c937d7ccfa968;p=platal.git avoid droppings in plugins/ git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@775 839d8a87-29fc-0310-9880-83ba4fa771e5 --- 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']);