K3.1 Protect images is broken  #2472

This code isn't needed if you would follow the instructions on how to set up support for the protected attachments. Basically to make the feature to work, you need to change Joomla .htaccess file as it doesn't route the files correctly.