DataObjects/Core_template.php
authorAlan Knowles <alan@roojs.com>
Fri, 4 Dec 2020 04:22:52 +0000 (12:22 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 4 Dec 2020 04:22:52 +0000 (12:22 +0800)
DataObjects/Core_template.php

index 85d30d5..89086f7 100644 (file)
@@ -423,6 +423,7 @@ WHERE (
        ");
         $d->filetype = 'php';
         if (! $d->find(true) ){
+            $done[$clsname.':'.$lang] = true;
             return;
         }
         $ff = HTML_FlexyFramework::get();
@@ -446,6 +447,11 @@ WHERE (
         $done[$clsname.':'.$lang] = true;
         
         // do we need to compile the file..
+        $ts = DB_DataObject::Factory('core_templatestr');
+        $ts->selectAdd('MAX(updated) as updated');
+        $ts->lang = $lang;
+        $ts->template_id = $d->id;
+        $ts->