DataObjects/Cms_page.php
[Pman.Cms] / Preview.php
index d973336..6822ffd 100644 (file)
@@ -41,7 +41,7 @@ class Pman_Cms_Preview extends Pman
     }
     
     
-    function get($path= false)
+    function get($path, $opts=array())
     {
         die("implement me");
         
@@ -258,7 +258,7 @@ class Pman_Cms_Preview extends Pman
         if(!$this->authUser){
             return false;
         }
-        $x = DB_DataObject::factory('Companies');
+        $x = DB_DataObject::factory('core_company');
         if($x->get($this->authUser->company_id)){
             if($x->comptype == 'OWNER'){
                 return true;