From 90a5837c5755d0ec12e0c77fd132486d2192507b Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 11 Feb 2015 15:52:11 +0800 Subject: [PATCH] Import/Core_notify.php --- Import/Core_notify.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Import/Core_notify.php b/Import/Core_notify.php index 66f60452..473d648e 100644 --- a/Import/Core_notify.php +++ b/Import/Core_notify.php @@ -31,7 +31,7 @@ class Pman_Core_Import_Core_notify extends Pman_Roo $this->modules = $this->modulesList(); - $this->config(); + $this->defaults(); $this->etype(); @@ -56,7 +56,7 @@ class Pman_Core_Import_Core_notify extends Pman_Roo $this->etype->insert(); } - function config() + function defaults() { foreach ($this->modules as $m){ $file = $this->rootDir. "/Pman/$m/Core.NotifyType.json"; @@ -65,12 +65,7 @@ class Pman_Core_Import_Core_notify extends Pman_Roo continue; } - $config = json_decode(file_get_contents($file), true); - - print_R($config); - - - + $this->defaults[$m] = json_decode(file_get_contents($file), true); } exit; -- 2.39.2