diff --git a/_crispage/scripts/changes_0.25.php b/_crispage/scripts/changes_0.25.php index feae16b..415f6cc 100644 --- a/_crispage/scripts/changes_0.25.php +++ b/_crispage/scripts/changes_0.25.php @@ -4,11 +4,13 @@ $this->log("Backing up config.php"); copy(ROOT . "/config.php", ROOT . "/config.old.php"); $this->runScript(PACKAGE, "copy_files"); +copy(PACKAGE_PATH . "/index.php", ROOT . "/index.php"); +copy(PACKAGE_PATH . "/package.php", ROOT . "/package.php"); $this->app->database->renameColumn($this->app->assets->getTable("\\Crispage\\Assets\\Plugin"), "runnable", "classname"); $this->log("Creating new config.php"); -$template = file_get_contents(PACKAGE_PATH . "/config_template.php"); +$template = file_get_contents(ROOT . "/packages/crispage.core/config_template.php"); $nmatches = preg_match_all(\Crispage\Text\I18n::TS_REGEX, $template, $matches, PREG_OFFSET_CAPTURE); $pos = 0; $config = "";