UpdateBjsTemplates.php
authorAlan <alan@roojs.com>
Fri, 24 Feb 2023 04:42:49 +0000 (12:42 +0800)
committerAlan <alan@roojs.com>
Fri, 24 Feb 2023 04:42:49 +0000 (12:42 +0800)
UpdateBjsTemplates.php

index 457c878..4bc38a9 100644 (file)
@@ -68,25 +68,6 @@ class Pman_Cms_UpdateBjsTemplates extends Pman_Admin_UpdateBjsTemplates
     }
     
     
-    function scanPHP($base, $dir, $fn)
-    {
-        
-        $tp = DB_DAtaObject::Factory('core_template');
-        $temp = $tp->syncPhpGetText(array(
-            'base' =>$base, 
-            'template_dir' =>  $dir,
-            'template' => $fn
-        ));
-        return $temp->id;
-         
-    }
-     function scanJS($base, $dir, $fn)
-    {
-       
-        
-        return $temp->id;
-         
-    }
     
     function scanTemplatesBase($base)
     {
@@ -96,7 +77,7 @@ class Pman_Cms_UpdateBjsTemplates extends Pman_Admin_UpdateBjsTemplates
         $dir = $ff->Pman_Cms['site_dir'][$base];
         $dh = opendir($dir);
         
-        $tp = DB_DAtaObject::Factory('core_template');
+        $tp = DB_DAtaObject::Factory('cms_template');
         
         $ret = array();