avoid droppings in plugins/
authorx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Wed, 2 Aug 2006 20:26:12 +0000 (20:26 +0000)
committerx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Wed, 2 Aug 2006 20:26:12 +0000 (20:26 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@775 839d8a87-29fc-0310-9880-83ba4fa771e5

modules/carnet.php
modules/carnet/smarty.php [moved from plugins/function.display_ical.php with 97% similarity]

index fc9710f..0aa52b3 100644 (file)
@@ -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,
similarity index 97%
rename from plugins/function.display_ical.php
rename to modules/carnet/smarty.php
index 1caf15f..4a709f7 100644 (file)
@@ -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']);