diff --git a/kernel/abstract/dbjson.class.php b/kernel/abstract/dbjson.class.php index ccd3fa80..1c96feb1 100644 --- a/kernel/abstract/dbjson.class.php +++ b/kernel/abstract/dbjson.class.php @@ -46,7 +46,7 @@ class dbJSON } } - public function restoreDb() + public function restoreDB() { $this->db = $this->dbBackup; return true; diff --git a/kernel/admin/controllers/dashboard.php b/kernel/admin/controllers/dashboard.php index 44abfa52..f3f8216a 100644 --- a/kernel/admin/controllers/dashboard.php +++ b/kernel/admin/controllers/dashboard.php @@ -3,6 +3,28 @@ // ============================================================================ // Functions // ============================================================================ +function updateBludit() +{ + global $Site; + + // Check if Bludit need to be update. + if($Site->currentBuild() < BLUDIT_BUILD) + { + $directories = array(PATH_POSTS, PATH_PAGES, PATH_PLUGINS_DATABASES, PATH_UPLOADS_PROFILES); + + foreach($directories as $dir) + { + // Check if the directory is already created. + if(!file_exists($dir)) { + // Create the directory recursive. + mkdir($dir, DIR_PERMISSIONS, true); + } + } + + // Set and save the database. + $Site->set(array('currentBuild'=>BLUDIT_BUILD)); + } +} // ============================================================================ // Main before POST @@ -16,6 +38,10 @@ // Main after POST // ============================================================================ +// Try update Bludit +updateBludit(); + +// Get draft posts and schedules $_draftPosts = array(); $_scheduledPosts = array(); foreach($posts as $Post) @@ -28,6 +54,7 @@ foreach($posts as $Post) } } +// Get draft pages $_draftPages = array(); foreach($pages as $Page) { diff --git a/kernel/admin/themes/default/img/default.jpg b/kernel/admin/themes/default/img/default.jpg index b8f1f672..2854b892 100644 Binary files a/kernel/admin/themes/default/img/default.jpg and b/kernel/admin/themes/default/img/default.jpg differ diff --git a/kernel/admin/themes/default/index.php b/kernel/admin/themes/default/index.php index 3f8d6b77..c5f03ba4 100644 --- a/kernel/admin/themes/default/index.php +++ b/kernel/admin/themes/default/index.php @@ -99,9 +99,9 @@ $(document).ready(function() {