mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Fix undefined index and constant problems
This commit is contained in:
parent
69fc326c98
commit
1f1a6157aa
2 changed files with 6 additions and 2 deletions
|
@ -26,7 +26,11 @@ require_once dirname(__FILE__).'/inc/rain.tpl.class.php';
|
|||
|
||||
|
||||
function url(){
|
||||
$protocol = ($_SERVER['HTTPS'] && $_SERVER['HTTPS'] != "off") ? "https" : "http";
|
||||
$protocol = "http";
|
||||
if(isset($_SERVER['HTTPS']))
|
||||
if($_SERVER['HTTPS'] != "off")
|
||||
$protocol = "https";
|
||||
|
||||
return $protocol . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue