Hi all,
I noticed one of the classes for which there is no fork yet is the images.php class. I tried to do it myself by adding the following lines in the images.php file:
JLoader::register('WpfImagesFork', JPATH_ADMIN_WPF .DS. 'fork' .DS. 'classes' .DS. 'images.php');
JLoader::load('WpfImagesFork');
// Fallback if no fork has been found
if (!class_exists('WpfImagesFork')){ class WpfImagesFork extends WpfImages{} }
This does load the forked class, but however when (in my case), I want to override the get() function, it does not seem to work. It will still call the get of the parent images.php class. I think in my case I can workaround this by calling my forked class in the forked class of the file.php, but just wondering why the first approach does not work.
FYI - what I am trying to accomplish is to override the define constant for 'allowed image sizes'. I want to merge this with a number of extra sizes which will be passed in from my component configuration parameters.
Any one any ideas?
Misha