Skip to content

Commit

Permalink
set version to 2.0.22 for upcoming maintenance release
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kaufmann <[email protected]>
  • Loading branch information
d00p committed Sep 1, 2023
1 parent a7198f5 commit 9d0e463
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
4 changes: 2 additions & 2 deletions install/froxlor.sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@
('system', 'distribution', ''),
('system', 'update_channel', 'stable'),
('system', 'updatecheck_data', ''),
('system', 'update_notify_last', '2.0.21'),
('system', 'update_notify_last', '2.0.22'),
('system', 'traffictool', 'goaccess'),
('system', 'req_limit_per_interval', 60),
('system', 'req_limit_interval', 60),
Expand Down Expand Up @@ -744,7 +744,7 @@
('panel', 'logo_overridetheme', '0'),
('panel', 'logo_overridecustom', '0'),
('panel', 'settings_mode', '0'),
('panel', 'version', '2.0.21'),
('panel', 'version', '2.0.22'),
('panel', 'db_version', '202304260');
Expand Down
5 changes: 5 additions & 0 deletions install/updates/froxlor/update_2.x.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -502,3 +502,8 @@
Update::showUpdateStep("Updating from 2.0.20 to 2.0.21", false);
Froxlor::updateToVersion('2.0.21');
}

if (Froxlor::isFroxlorVersion('2.0.21')) {
Update::showUpdateStep("Updating from 2.0.21 to 2.0.22", false);
Froxlor::updateToVersion('2.0.22');
}
8 changes: 1 addition & 7 deletions lib/Froxlor/Cron/Http/Nginx.php
Original file line number Diff line number Diff line change
Expand Up @@ -883,13 +883,7 @@ private function cleanVhostStruct($vhost = null)
// remove comments
$vhost = implode("\n", preg_replace('/^(\s+)?#(.*)$/', '', explode("\n", $vhost)));
// Break blocks into lines
$vhost = str_replace([
"{",
"}"
], [
" {\n",
"\n}"
], $vhost);
$vhost = preg_replace("/^(\s+)location(.+)\{(.+)\}$/misU", "location $2 {\n $3 \n}", $vhost);
// Break into array items
$vhost = explode("\n", preg_replace('/[ \t]+/', ' ', trim(preg_replace('/\t+/', '', $vhost))));
// Remove empty lines
Expand Down
6 changes: 3 additions & 3 deletions lib/Froxlor/CurrentUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@

namespace Froxlor;

use Froxlor\Database\Database;
use Froxlor\UI\Collection;
use Froxlor\Api\Commands\Customers;
use Froxlor\Api\Commands\SubDomains;
use Froxlor\Database\Database;
use Froxlor\UI\Collection;

/**
* Class to manage the current user / session
Expand Down Expand Up @@ -153,7 +153,7 @@ public static function canAddResource(string $resource): bool
} elseif ($resource == 'subdomains') {
$parentDomainCollection = (new Collection(SubDomains::class, $_SESSION['userinfo'],
['sql_search' => ['d.parentdomainid' => 0]]));
$addition = $parentDomainCollection != 0;
$addition = $parentDomainCollection->count() != 0;
} elseif ($resource == 'domains') {
$customerCollection = (new Collection(Customers::class, $_SESSION['userinfo']));
$addition = $customerCollection != 0;
Expand Down
2 changes: 1 addition & 1 deletion lib/Froxlor/Froxlor.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final class Froxlor
{

// Main version variable
const VERSION = '2.0.21';
const VERSION = '2.0.22';

// Database version (YYYYMMDDC where C is a daily counter)
const DBVERSION = '202304260';
Expand Down

0 comments on commit 9d0e463

Please sign in to comment.