mirror of
https://github.com/e107inc/e107.git
synced 2025-06-02 08:55:18 +02:00
Minor fixes and debug.
This commit is contained in:
parent
62d483e51d
commit
93ab7996c7
@ -995,6 +995,12 @@ class e_news_category_item extends e_front_model
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
if($parm === 'raw')
|
||||
{
|
||||
return (string) $this->cat('news_count');
|
||||
}
|
||||
|
||||
return (string) e107::getParser()->toBadge( $this->cat('news_count'));
|
||||
}
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ $caption = !empty($parm['caption'][e_LANGUAGE]) ? $parm['caption'][e_LANGUAGE] :
|
||||
|
||||
e107::plugLan('news');
|
||||
|
||||
e107::getRender()->tablerender($caption, $text);
|
||||
e107::getRender()->tablerender($caption, $text, 'news-archive-menu');
|
||||
|
||||
//e107::getDebug()->log($arr);
|
||||
|
||||
|
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user