From 65adddb3ddae8d878298192874174e144d6299b0 Mon Sep 17 00:00:00 2001 From: Kanti Date: Fri, 23 Jan 2015 11:55:36 +0100 Subject: [PATCH] [TASK] better development process --- index.php | 2 +- system/htmly.php | 1 - system/upgrade/run.php | 9 +++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index 5177557..5827cd7 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,5 @@ getCurrentInfo(); $versionNumber = substr($info['tag_name'], 1); @@ -32,5 +34,8 @@ if (isGraterThan("2.3")) {// 2.4, 2.5, ... } } -file_put_contents("index.php", file_get_contents("system/upgrade/index.php")); -rrmdir("system/upgrade/"); + +if(!config("dev")){ + file_put_contents("index.php", file_get_contents("system/upgrade/index.php")); + rrmdir("system/upgrade/"); +}