From 4da010edfa689a3d7e707b3a71d361af3254989d Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 16 May 2018 12:29:41 +0800 Subject: [PATCH] sync --- AssetTrait.php | 4 +++- sql/core_email.sql | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/AssetTrait.php b/AssetTrait.php index 9fc559ab..b05bbd44 100644 --- a/AssetTrait.php +++ b/AssetTrait.php @@ -239,7 +239,9 @@ trait Pman_Core_AssetTrait { $ff = HTML_FlexyFramework::get(); - if (!empty($ff->Pman['isDev']) && !empty($_REQUEST['isDev'])) { + // isDev set + + if ((!empty($ff->Pman['isDev']) || $_SERVER['HTTP_HOST'] == 'localhost' )&& !empty($_REQUEST['isDev'])) { echo "\n"; $this->assetArrayToHtml($files,'css'); return; diff --git a/sql/core_email.sql b/sql/core_email.sql index 2f0cbb18..71b8002b 100644 --- a/sql/core_email.sql +++ b/sql/core_email.sql @@ -27,6 +27,10 @@ ALTER TABLE core_email CHANGE COLUMN in_group to_group_id INT(11) NOT NULL DEFA ALTER TABLE core_email CHANGE COLUMN to_group to_group_id INT(11) NOT NULL DEFAULT -1; ALTER TABLE core_email ADD COLUMN to_group_id INT(11) NOT NULL DEFAULT -1; +-- rather than use 'body... use the original file..' +ALTER TABLE core_email ADD COLUMN use_file VARCHAR(254) NOT NULL DEFAULT ''; + + UPDATE core_email SET updated_dt = NOW() where updated_dt IS NULL; -- 2.39.2