make private modules looks the same
[platal.git] / plugins / function.rel.php
index 2deb44f..b2bccc8 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2004 Polytechnique.org                              *
+ *  Copyright (C) 2003-2006 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -23,7 +23,8 @@ function smarty_function_rel()
 {
     static $rel;
     if (empty($rel)) {
-        global $globals;
+        global $globals, $platal;
+
         $url = parse_url($globals->baseurl);
         return ($rel = $url['path']);
     }