Re enable plugins from rc2

This commit is contained in:
Diego Najar 2018-09-10 20:23:37 +02:00
parent bcb656511e
commit 3d20f1cb36
3 changed files with 11 additions and 7 deletions

View File

@ -9,9 +9,13 @@ function updateBludit() {
if( ($site->currentBuild() < BLUDIT_BUILD) || isset($_GET['update']) ) {
Log::set('UPDATE SYSTEM - Starting.');
// From Bludit v2.0.x to v2.1.x
if ($site->currentBuild() < '20171102') {
// Nothing to do
$plugins = array('pluginRSS', 'pluginSitemap', 'pluginTimeMachineX', 'pluginBackup');
foreach ($plugins as $plugin) {
if (pluginActivated($plugin)) {
Log::set('UPDATE SYSTEM - Re-enable plugin: '.$plugin);
deactivatePlugin($plugin);
activatePlugin($plugin);
}
}
// Set the current build number

View File

@ -1,10 +1,10 @@
<?php defined('BLUDIT') or die('Bludit CMS.');
// Bludit version
define('BLUDIT_VERSION', '3.0.0-rc2');
define('BLUDIT_VERSION', '3.0.0-rc3');
define('BLUDIT_CODENAME', '');
define('BLUDIT_RELEASE_DATE', '2018-09-02');
define('BLUDIT_BUILD', '20180902');
define('BLUDIT_RELEASE_DATE', '2018-09-10');
define('BLUDIT_BUILD', '20180910');
// Debug mode
// Change to FALSE, for prevent warning or errors on browser

View File

@ -58,7 +58,7 @@ if ($site->homepage() && $url->whereAmI()==='home') {
// Build specific page
if ($url->whereAmI()==='page') {
// Check if the URL has trailing slash
// If the page ends with slash redirect to the correct url
$pageKey = $url->slug();
if (Text::endsWith($pageKey, '/')) {
$pageKey = rtrim($pageKey, '/');