Jump to content

Overrides don't work if there's nothing to override


Christopher Ambler

Recommended Posts

That title sounds odd, but...

 

I developed everywhere_com_mi.php as an extension for my gallery component. I placed it in the controllers/components/evewhere directory and all was great.

 

Upon upgrading JReviews (because I'm doing the beta thing on paidlistings), I forgot to move it back in there after the upgrade. I did, however, have my FUNCTIONAL copy in the jreviews_overrides directory. That's the copy I make changes to, with the original in the main tree.

 

Having the file in jreviews_overrides doesn't do anything, though, if there isn't one in the main tree. Ever after clearing the file registry, it's not picked up from jreviews_overrides. Once I dropped the original back, the override was picked up.

 

Is this expected behavior?

 

I ask, because it seems to me better that my one and only copy of this file live in overrides so that upgrades don't nuke anything and, more importantly, upgrades don't require me to remember to put my everywhere component back to get it working.

Link to comment
×
×
  • Create New...