ftimme
2013-08-08 d650ddab9042273e569ee4dc13e78d86c4488d83
interface/web/sites/web_domain_edit.php
@@ -447,6 +447,17 @@
         }
         $app->tpl->setVar("domain_option",$domain_select);
      }
      // check for configuration errors in sys_datalog
      if($this->id > 0) {
         $datalog = $app->db->queryOneRecord("SELECT * FROM sys_datalog WHERE dbtable = 'web_domain' AND dbidx = 'domain_id:".$this->id."' ORDER BY tstamp DESC");
         if(is_array($datalog) && !empty($datalog)){
            if(trim($datalog['error']) != ''){
               $app->tpl->setVar("config_error_msg",nl2br(htmlentities($datalog['error'])));
               $app->tpl->setVar("config_error_tstamp",date($app->lng('conf_format_datetime'), $datalog['tstamp']));
            }
         }
      }
      parent::onShowEnd();
   }