Keyword

K2 image upload: hide K2_IMAGE_WAS_NOT_UPLOADED notice

  • Szymon Pluta
  • Szymon Pluta's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 1 month ago #164630 by Szymon Pluta
Hi guys,

if you ant to add my fix to file :

1. find line
if (($files['image']['error'] == 0 || $existingImage) && !JRequest::getBool('del_image'))
		{

2. insert there
 if (!empty($image)){   //added check if $image is empty 


3 find
       else
                {
                    $mainframe->enqueueMessage(JText::_('K2_IMAGE_WAS_NOT_UPLOADED'), 'notice');
                }

4. put
 }// end check if $image is empty 

All other elements are from original file.

You can also try to check it with WinMerge.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum