tons of fixes and/or simplifications.
[platal.git] / plugins / block.only_public.php
index dc899ad..24430a2 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   *
@@ -30,7 +30,7 @@
  */
 function smarty_block_only_public($params, $content, &$smarty)
 {
-    if( empty($content) || logged() )
+    if( empty($content) || S::logged() )
         return;
     return $content;
 }