Skip to content
Permalink
Browse files

#2252 - Fixed Catalogue class instantiation

  • Loading branch information...
abrookbanks committed Mar 6, 2019
1 parent 12ae95b commit 2bb6e2f18d3000d41a3387528c03cd5c3116ab70
Showing with 2 additions and 2 deletions.
  1. +1 −1 classes/ajax.class.php
  2. +1 −1 classes/filemanager.class.php
@@ -189,7 +189,7 @@ public static function search($type, $search_string)
}
if (($files = $filemanager->listFiles()) !== false) {
$catalogue = new Catalogue();
$catalogue = $GLOBALS['catalogue']->getInstance();
foreach ($files as $result) {
if ($filemanager->getMode() == FileManager::FM_FILETYPE_IMG) {
$fetch = $catalogue->imagePath($result['file_id'], 'medium');
@@ -896,7 +896,7 @@ public function listFiles($type = false, $select_button = false)
$where = '`disabled` = 0 AND `type` = '.(int)$this->_mode.' AND `filepath` '.$filepath_where;
if (($files = $GLOBALS['db']->select('CubeCart_filemanager', false, $where, array('filename' => 'ASC'))) !== false) {
$catalogue = new Catalogue();
$catalogue = $GLOBALS['catalogue']->getInstance();
$GLOBALS['smarty']->assign('ROOT_REL', $GLOBALS['rootRel']);
foreach ($files as $key => $file) {
$file['icon'] = $this->getFileIcon($file['mimetype']);

0 comments on commit 2bb6e2f

Please sign in to comment.
You can’t perform that action at this time.