Skip to content

Commit

Permalink
Updated reference to class.upload.php
Browse files Browse the repository at this point in the history
  • Loading branch information
fevangelou committed Jan 29, 2018
1 parent add0bb4 commit ed5b4b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/fillitup/k2/k2.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ public function createCategoryImage($catid, $params, $generator)
{
return;
}
JLoader::register('Upload', JPATH_ADMINISTRATOR.'/components/com_k2/lib/class.upload.php');
JLoader::register('Upload', JPATH_ADMINISTRATOR.'/components/com_jw_fillitup/lib/class.upload.php');
$savepath = JPATH_SITE.'/media/k2/categories';
$handle = new Upload($image);
$handle->allowed = array('image/*');
Expand All @@ -458,7 +458,7 @@ public function createCategoryImage($catid, $params, $generator)

protected function createItemImages($id, $catid, $params)
{
JLoader::register('Upload', JPATH_ADMINISTRATOR.'/components/com_k2/lib/class.upload.php');
JLoader::register('Upload', JPATH_ADMINISTRATOR.'/components/com_jw_fillitup/lib/class.upload.php');
$image = $this->getRandomImage($catid);

if (!$image)
Expand Down

0 comments on commit ed5b4b7

Please sign in to comment.