1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 02:04:35 +02:00

Update JqueryWireTabs module to use jquery.cookie.js rather than settings it's own, hopefully to fix issue processwire/processwire-issues#1188

This commit is contained in:
Ryan Cramer
2020-07-24 14:15:59 -04:00
parent 4c8b474c29
commit 4b1eefa9d0
4 changed files with 19 additions and 12 deletions

View File

@@ -55,6 +55,8 @@ function _checkForHttpHostError(Config $config) {
$valid = true;
} else if(isset($_SERVER['SERVER_NAME']) && $httpHost === strtolower($_SERVER['SERVER_NAME'])) {
$valid = true;
} else if(in_array($httpHost, $config->httpHosts)) {
$valid = true;
}
if(!$valid) $config->error(
@@ -204,7 +206,8 @@ if($ajax) {
ob_end_clean();
}
$config->js(array('httpHost', 'httpHosts'), true);
// config properties that should be mirrored to ProcessWire.config.property in JS
$config->js(array('httpHost', 'httpHosts', 'https'), true);
if($controller && $controller->isAjax()) {
if(empty($content) && count($notices)) $content = $controller->jsonMessage($notices->last()->text);