From 36d01fdb7db86f09ec5019e1fa1641f53996109e Mon Sep 17 00:00:00 2001 From: czaks Date: Mon, 16 Jun 2014 11:29:18 +0200 Subject: [PATCH] fix upgrade path a little bit with a new catalog --- templates/themes/catalog/theme.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/themes/catalog/theme.php b/templates/themes/catalog/theme.php index 0a95c8df..c6679f7c 100644 --- a/templates/themes/catalog/theme.php +++ b/templates/themes/catalog/theme.php @@ -50,7 +50,7 @@ if ($files[0]->file == 'deleted') continue; $post['file'] = $config['uri_thumb'] . $files[0]->thumb; - if ($settings['use_tooltipster']) { + if (isset($settings['use_tooltipster']) && $settings['use_tooltipster']) { $post['muhdifference'] = ago(time() - $post['time']); if ($post['last_reply']) @@ -60,7 +60,7 @@ $recent_posts[] = $post; } - $required_scripts = array('js/jquery.mixitup.min.js', 'js/jquery.tooltipster.min.js', 'js/catalog.js'); + $required_scripts = array('js/jquery.min.js', 'js/jquery.mixitup.min.js', 'js/jquery.tooltipster.min.js', 'js/catalog.js'); foreach($required_scripts as $i => $s) { if (!in_array($s, $config['additional_javascript']))