UpdateTemplates.php
authorAlan Knowles <alan@roojs.com>
Mon, 9 Oct 2017 05:07:50 +0000 (13:07 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 9 Oct 2017 05:07:50 +0000 (13:07 +0800)
UpdateTemplates.php

index 5f3aa8a..2fab090 100644 (file)
@@ -134,7 +134,7 @@ class Pman_Cms_UpdateTemplates extends Pman
             $pages[] = $pg;
         }
         
-        //print_R($pages); exit;;
+         print_R($pages); exit;;
         
          
         // now generate all the templates..
@@ -152,8 +152,7 @@ class Pman_Cms_UpdateTemplates extends Pman
             $pages[$i]['template_object'] = $tp->syncTemplatePage($pg);
         }
         
-        print_R($pages); exit;
-        $pgo = DB_DataObject::factory('cms_page');
+         $pgo = DB_DataObject::factory('cms_page');
         foreach($pages as $i=>$pg) {
             
             if (!empty($this->opts['template']) && $this->opts['template'] != ($pg['template_dir'] . '/'. $pg['template'])) {