Small html fix
[platal.git] / classes / plmodule.php
index af4de8f..09c7baa 100644 (file)
@@ -23,7 +23,7 @@ class PLModule
 {
     function handlers()     { die("implement me"); }
 
-    function make_hook($fun, $auth, $perms = '', $type = SKINNED)
+    function make_hook($fun, $auth, $perms = '', $type = DO_AUTH)
     {
         return array('hook'  => array($this, 'handler_'.$fun),
                      'auth'  => $auth,
@@ -33,7 +33,7 @@ class PLModule
 
     /* static functions */
 
-    function factory($modname)
+    public static function factory($modname)
     {
         $mod_path = dirname(__FILE__).'/../modules/'.strtolower($modname).'.php';
         $class    = ucfirst($modname).'Module';