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:
23
thumb.php
23
thumb.php
@@ -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);
|
||||
|
Reference in New Issue
Block a user