Merge branch 'master' of github.com:joshtronic/pickles
This commit is contained in:
commit
63fd4db19a
3 changed files with 10 additions and 2 deletions
|
@ -53,7 +53,7 @@ class Browser
|
||||||
{
|
{
|
||||||
if (strpos($destination, '://') === false)
|
if (strpos($destination, '://') === false)
|
||||||
{
|
{
|
||||||
$destination = 'http' . ((!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off') ? '' : 's') . '://' . $_SERVER['HTTP_HOST'] . $destination;
|
$destination = 'http' . ((!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off' || $_SERVER['HTTPS'] == '') ? '' : 's') . '://' . $_SERVER['HTTP_HOST'] . $destination;
|
||||||
}
|
}
|
||||||
|
|
||||||
header('Location: ' . $destination);
|
header('Location: ' . $destination);
|
||||||
|
|
|
@ -389,6 +389,10 @@ class Controller extends Object
|
||||||
{
|
{
|
||||||
$module_return = $module->return;
|
$module_return = $module->return;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$module_return = array_merge($module_return, $module->return);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$display->setModuleReturn(isset($module_return) ? $module_return : array('status' => 'error', 'message' => $error_message));
|
$display->setModuleReturn(isset($module_return) ? $module_return : array('status' => 'error', 'message' => $error_message));
|
||||||
|
|
6
jar.php
6
jar.php
|
@ -358,7 +358,7 @@ class Browser
|
||||||
{
|
{
|
||||||
if (strpos($destination, '://') === false)
|
if (strpos($destination, '://') === false)
|
||||||
{
|
{
|
||||||
$destination = 'http' . ((!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off') ? '' : 's') . '://' . $_SERVER['HTTP_HOST'] . $destination;
|
$destination = 'http' . ((!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off' || $_SERVER['HTTPS'] == '') ? '' : 's') . '://' . $_SERVER['HTTP_HOST'] . $destination;
|
||||||
}
|
}
|
||||||
|
|
||||||
header('Location: ' . $destination);
|
header('Location: ' . $destination);
|
||||||
|
@ -1417,6 +1417,10 @@ class Controller extends Object
|
||||||
{
|
{
|
||||||
$module_return = $module->return;
|
$module_return = $module->return;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$module_return = array_merge($module_return, $module->return);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$display->setModuleReturn(isset($module_return) ? $module_return : array('status' => 'error', 'message' => $error_message));
|
$display->setModuleReturn(isset($module_return) ? $module_return : array('status' => 'error', 'message' => $error_message));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue