Re enable plugins from rc2
This commit is contained in:
parent
bcb656511e
commit
3d20f1cb36
|
@ -9,9 +9,13 @@ function updateBludit() {
|
||||||
if( ($site->currentBuild() < BLUDIT_BUILD) || isset($_GET['update']) ) {
|
if( ($site->currentBuild() < BLUDIT_BUILD) || isset($_GET['update']) ) {
|
||||||
Log::set('UPDATE SYSTEM - Starting.');
|
Log::set('UPDATE SYSTEM - Starting.');
|
||||||
|
|
||||||
// From Bludit v2.0.x to v2.1.x
|
$plugins = array('pluginRSS', 'pluginSitemap', 'pluginTimeMachineX', 'pluginBackup');
|
||||||
if ($site->currentBuild() < '20171102') {
|
foreach ($plugins as $plugin) {
|
||||||
// Nothing to do
|
if (pluginActivated($plugin)) {
|
||||||
|
Log::set('UPDATE SYSTEM - Re-enable plugin: '.$plugin);
|
||||||
|
deactivatePlugin($plugin);
|
||||||
|
activatePlugin($plugin);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the current build number
|
// Set the current build number
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<?php defined('BLUDIT') or die('Bludit CMS.');
|
<?php defined('BLUDIT') or die('Bludit CMS.');
|
||||||
|
|
||||||
// Bludit version
|
// Bludit version
|
||||||
define('BLUDIT_VERSION', '3.0.0-rc2');
|
define('BLUDIT_VERSION', '3.0.0-rc3');
|
||||||
define('BLUDIT_CODENAME', '');
|
define('BLUDIT_CODENAME', '');
|
||||||
define('BLUDIT_RELEASE_DATE', '2018-09-02');
|
define('BLUDIT_RELEASE_DATE', '2018-09-10');
|
||||||
define('BLUDIT_BUILD', '20180902');
|
define('BLUDIT_BUILD', '20180910');
|
||||||
|
|
||||||
// Debug mode
|
// Debug mode
|
||||||
// Change to FALSE, for prevent warning or errors on browser
|
// Change to FALSE, for prevent warning or errors on browser
|
||||||
|
|
|
@ -58,7 +58,7 @@ if ($site->homepage() && $url->whereAmI()==='home') {
|
||||||
|
|
||||||
// Build specific page
|
// Build specific page
|
||||||
if ($url->whereAmI()==='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();
|
$pageKey = $url->slug();
|
||||||
if (Text::endsWith($pageKey, '/')) {
|
if (Text::endsWith($pageKey, '/')) {
|
||||||
$pageKey = rtrim($pageKey, '/');
|
$pageKey = rtrim($pageKey, '/');
|
||||||
|
|
Loading…
Reference in New Issue