Skip to content

Commit

Permalink
Introduce new constant to fix issue #520, update version
Browse files Browse the repository at this point in the history
  • Loading branch information
instantflorian committed Oct 26, 2022
1 parent 22a52e1 commit 7320043
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions wbce/admin/interface/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// set WBCE version and release tag
/////////////////////////////////////////

define('NEW_WBCE_VERSION', '1.5.3'); // NEW_WBCE_VERSION
define('NEW_WBCE_TAG', '1.5.3'); // NEW_WBCE_TAG
define('NEW_WBCE_VERSION', '1.5.4'); // NEW_WBCE_VERSION
define('NEW_WBCE_TAG', '1.5.4'); // NEW_WBCE_TAG

defined('WBCE_VERSION') or define('WBCE_VERSION', NEW_WBCE_VERSION); // WBCE_VERSION
defined('WBCE_TAG') or define('WBCE_TAG', NEW_WBCE_TAG); // WBCE_TAG
Expand Down
6 changes: 5 additions & 1 deletion wbce/framework/class.wb.php
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,11 @@ public function register_modfiles($sModfileType = "css", $sEndPosition = "fronte
break;
case 'js':
// insert system vars to be ready for all JS code
$sJsSysvars = "\t\tvar URL = WB_URL = '" . WB_URL . "';";
if (defined("URL_VAR_COMPATIBILITY_MODE") && URL_VAR_COMPATIBILITY_MODE==true) {
$sJsSysvars = "\t\tvar URL = WB_URL = '" . WB_URL . "';";
} else {
$sJsSysvars = "\t\tvar WB_URL = '" . WB_URL . "';";
}

if (defined("LANGUAGE")) {
$sJsSysvars .= "\n\t\tvar LANGUAGE = '" . strtolower(LANGUAGE) . "';";
Expand Down

0 comments on commit 7320043

Please sign in to comment.