From fc70852a11d1b1750d7ddfe07e7ad9b3fc4f6610 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Wed, 7 Mar 2018 19:09:22 +0100 Subject: [PATCH] Fix on Static pages plugin --- bl-kernel/admin/themes/default/index.php | 2 +- install.php | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/bl-kernel/admin/themes/default/index.php b/bl-kernel/admin/themes/default/index.php index 5a19f0bf..7905fdbe 100644 --- a/bl-kernel/admin/themes/default/index.php +++ b/bl-kernel/admin/themes/default/index.php @@ -162,7 +162,7 @@ $(document).ready(function() { diff --git a/install.php b/install.php index 0b084289..7d687b11 100644 --- a/install.php +++ b/install.php @@ -306,11 +306,6 @@ function install($adminPassword, $email='', $timezone) error_log($errorText, 0); } - if (!mkdir(PATH_PLUGINS_DATABASES.'version', $dirpermissions, true)) { - $errorText = 'Error when trying to created the directory=>'.PATH_PLUGINS_DATABASES.'version'; - error_log($errorText, 0); - } - // UPLOADS directories if (!mkdir(PATH_UPLOADS_PROFILES, $dirpermissions, true)) { $errorText = 'Error when trying to created the directory=>'.PATH_UPLOADS_PROFILES; @@ -550,17 +545,6 @@ function install($adminPassword, $email='', $timezone) LOCK_EX ); - // File plugins/version/db.php - file_put_contents( - PATH_PLUGINS_DATABASES.'version'.DS.'db.php', - $dataHead.json_encode( - array( - 'position'=>1 - ), - JSON_PRETTY_PRINT), - LOCK_EX - ); - // Page create-your-own-content $data = 'Title: '.$Language->get('example-page-1-title').PHP_EOL.'Content: '.PHP_EOL.$Language->get('example-page-1-content'); file_put_contents(PATH_PAGES.$Language->get('example-page-1-slug').DS.FILENAME, $data, LOCK_EX);