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

index be5996e..8155a21 100644 (file)
@@ -461,10 +461,11 @@ WHERE (
 
         $ts = DB_DataObject::Factory('core_templatestr');
         $ts->autoJoin();
+        $ts->selectAdd('join_src_id_id.txt as src_id_txt, core_templatestr.txt as txt');
         $ts->lang = $lang;
         $ts->template_id = $d->id;
-        $ts->fetchAll();
-        
+        $words = $ts->fetchAll('src_id_txt', 'txt' );
+        print_R($words);
     exit;        
         if (!file_exists($fdir)) {
             mkdir($fdir, 0600, true);