1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 23:56:58 +02:00

Minor fixes and debug.

This commit is contained in:
Cameron
2017-11-09 10:15:36 -08:00
parent 62d483e51d
commit 93ab7996c7
3 changed files with 25 additions and 6 deletions

View File

@@ -223,6 +223,11 @@ class e_thumbpage
return true;
}
if($this->_debug === true)
{
echo "File Not Found: ".$path;
}
$this->_placeholder = true;
return true;
@@ -232,6 +237,12 @@ class e_thumbpage
function sendImage()
{
//global $bench;
if($this->_debug === true)
{
var_dump($this->_request);
// return false;
}
if($this->_placeholder == true)
{
@@ -244,11 +255,7 @@ class e_thumbpage
return false;
}
if($this->_debug === true)
{
var_dump($this->_request);
// return false;
}
if(!$this->_src_path)
{
@@ -470,6 +477,12 @@ class e_thumbpage
// Display a placeholder image.
function placeholder($parm)
{
if($this->_debug === true)
{
echo "Placeholder activated";
return null;
}
$getsize = isset($parm['size']) ? $parm['size'] : '100x100';
header('location: https://placehold.it/'.$getsize);