mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
Fixes #1558 - Gallery fatal error
This commit is contained in:
@@ -60,14 +60,11 @@ class gallery
|
|||||||
$template = array_change_key_case($template);
|
$template = array_change_key_case($template);
|
||||||
$sc = e107::getScBatch('gallery', true);
|
$sc = e107::getScBatch('gallery', true);
|
||||||
|
|
||||||
$text = "";
|
|
||||||
|
|
||||||
if(defset('BOOTSTRAP') === true || defset('BOOTSTRAP') === 2) // Convert bootstrap3 to bootstrap2 compat.
|
if(defset('BOOTSTRAP') === true || defset('BOOTSTRAP') === 2) // Convert bootstrap3 to bootstrap2 compat.
|
||||||
{
|
{
|
||||||
$template['cat_start'] = str_replace('row', 'row-fluid', $template['cat_start']);
|
$template['cat_start'] = str_replace('row', 'row-fluid', $template['cat_start']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$text = e107::getParser()->parseTemplate($template['cat_start'], true, $sc);
|
$text = e107::getParser()->parseTemplate($template['cat_start'], true, $sc);
|
||||||
|
|
||||||
foreach($this->catList as $val)
|
foreach($this->catList as $val)
|
||||||
@@ -78,7 +75,7 @@ class gallery
|
|||||||
|
|
||||||
$text .= e107::getParser()->parseTemplate($template['cat_end'], true, $sc);
|
$text .= e107::getParser()->parseTemplate($template['cat_end'], true, $sc);
|
||||||
|
|
||||||
$caption = $tp->parseTemplate($template['cat_caption'], true, $sc);
|
$caption = e107::getParser()->parseTemplate($template['cat_caption'], true, $sc);
|
||||||
|
|
||||||
e107::getRender()->tablerender($caption, $text);
|
e107::getRender()->tablerender($caption, $text);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user