Skip to content
Snippets Groups Projects
Commit 7362fbcf authored by Chenu Denis's avatar Chenu Denis
Browse files

[fix] Bad version compare

parent 0464f86c
Branches
No related tags found
No related merge requests found
Pipeline #1682680577 passed
......@@ -99,7 +99,7 @@ class AdminBanner extends PluginBase {
App()->clientScript->registerScript('AdminBannerContent', $script, CClientScript::POS_LOAD);
}
if (!empty($this->get('textjumbotron'))) {
if (version_compare(App()->getConfig('versionnumber'), '6.10.3') >= 0) {
if (version_compare(App()->getConfig('versionnumber'), '6.10.3') <= 0) {
$jumbotrocontent = "<div>" . $this->get('textjumbotron') . "</div>";
$script = 'if ($("#welcome-jumbotron").length) {' . "\n";
if ($this->get('wholejumbotron')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment