mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-30 04:42:19 -05:00
Fix undefined index and constant problems
This commit is contained in:
parent
69fc326c98
commit
1f1a6157aa
@ -80,7 +80,7 @@ class Readability
|
|||||||
public $debug = false;
|
public $debug = false;
|
||||||
protected $body = null; //
|
protected $body = null; //
|
||||||
protected $bodyCache = null; // Cache the body HTML in case we need to re-use it later
|
protected $bodyCache = null; // Cache the body HTML in case we need to re-use it later
|
||||||
protected $flags = FLAG_CLEAN_CONDITIONALLY; // 1 | 2 | 4; // Start with all flags set.
|
protected $flags = self::FLAG_CLEAN_CONDITIONALLY; // 1 | 2 | 4; // Start with all flags set.
|
||||||
protected $success = false; // indicates whether we were able to extract or not
|
protected $success = false; // indicates whether we were able to extract or not
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -26,7 +26,11 @@ require_once dirname(__FILE__).'/inc/rain.tpl.class.php';
|
|||||||
|
|
||||||
|
|
||||||
function url(){
|
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'];
|
return $protocol . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user