Topic: Deprecated "JSite" reference causing fatal errors on content save in admin

0 Members and 1 Guest are viewing this topic.

December 17, 2010, 10:29 AM

Offline harikaram

  • Newbie
  • *
  • Posts: 11
  • 'corePHP' - Unlock your Full Potential!
    • View Profile
A somewhat rare but highly annoying error...

Line 28 in the jphoto content plugin:

Code: [Select]
$menu = &JSite::getMenu();
causes errors with some components which invoke onPrepareContent from the backend (JXtended Finder, K2).

FIX:
This line seems deprecated (its the only reference to $menu) so it can be removed.  In generally JFactory::getApplication() is preferred to JSite...