From 8270c5cf42576602b035de7291672a5d6427be31 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 29 Dec 2019 12:45:35 -0800 Subject: [PATCH] Remove tests folder when doing a core github pull, unless developer mode is active. --- e107_handlers/cron_class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/e107_handlers/cron_class.php b/e107_handlers/cron_class.php index 8773decd2..efcd1f556 100644 --- a/e107_handlers/cron_class.php +++ b/e107_handlers/cron_class.php @@ -54,6 +54,11 @@ class _system_cron { $mes->addDebug("Removed install.php"); } + + if(!deftrue('e_DEVELOPER')) // leave tests folder intact if developer mode is active. + { + $fl->removeDir(e_BASE.'e107_tests'); + } } else {