mirror of
https://github.com/e107inc/e107.git
synced 2025-07-29 19:00:26 +02:00
Minor fixes and debug.
This commit is contained in:
@@ -995,6 +995,12 @@ class e_news_category_item extends e_front_model
|
|||||||
{
|
{
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($parm === 'raw')
|
||||||
|
{
|
||||||
|
return (string) $this->cat('news_count');
|
||||||
|
}
|
||||||
|
|
||||||
return (string) e107::getParser()->toBadge( $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::plugLan('news');
|
||||||
|
|
||||||
e107::getRender()->tablerender($caption, $text);
|
e107::getRender()->tablerender($caption, $text, 'news-archive-menu');
|
||||||
|
|
||||||
//e107::getDebug()->log($arr);
|
//e107::getDebug()->log($arr);
|
||||||
|
|
||||||
|
23
thumb.php
23
thumb.php
@@ -223,6 +223,11 @@ class e_thumbpage
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($this->_debug === true)
|
||||||
|
{
|
||||||
|
echo "File Not Found: ".$path;
|
||||||
|
}
|
||||||
|
|
||||||
$this->_placeholder = true;
|
$this->_placeholder = true;
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
@@ -232,6 +237,12 @@ class e_thumbpage
|
|||||||
function sendImage()
|
function sendImage()
|
||||||
{
|
{
|
||||||
//global $bench;
|
//global $bench;
|
||||||
|
if($this->_debug === true)
|
||||||
|
{
|
||||||
|
var_dump($this->_request);
|
||||||
|
// return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if($this->_placeholder == true)
|
if($this->_placeholder == true)
|
||||||
{
|
{
|
||||||
@@ -244,11 +255,7 @@ class e_thumbpage
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->_debug === true)
|
|
||||||
{
|
|
||||||
var_dump($this->_request);
|
|
||||||
// return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!$this->_src_path)
|
if(!$this->_src_path)
|
||||||
{
|
{
|
||||||
@@ -470,6 +477,12 @@ class e_thumbpage
|
|||||||
// Display a placeholder image.
|
// Display a placeholder image.
|
||||||
function placeholder($parm)
|
function placeholder($parm)
|
||||||
{
|
{
|
||||||
|
if($this->_debug === true)
|
||||||
|
{
|
||||||
|
echo "Placeholder activated";
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
$getsize = isset($parm['size']) ? $parm['size'] : '100x100';
|
$getsize = isset($parm['size']) ? $parm['size'] : '100x100';
|
||||||
|
|
||||||
header('location: https://placehold.it/'.$getsize);
|
header('location: https://placehold.it/'.$getsize);
|
||||||
|
Reference in New Issue
Block a user