News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

[fixed] Category Model issue

Started by lefedor, May 31, 2012, 17:28:47 PM

Previous topic - Next topic

lefedor

vm v2.06 stable

* Category Model:

around line 729, shouldn't it be
JFactory::getApplication()->getMenu();
instead JSite?

public function getParentsList($virtuemart_category_id) {

               $db = JFactory::getDBO();
               //$menu = JSite::getMenu();
               $menu = JFactory::getApplication()->getMenu();


getting
"""Class 'JSite' not found in /home/.../public_html/administrator/components/com_virtuemart/models/category.php on line 729"""
otherwise.

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

lefedor

Joomla! 2.5.4
Model is used by another (external) component for category listing retriving.

Milbo

Hmmm interesting, look here
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=28088
Quote
Display menu item in front-end.

Generally speaking, changing
$menu = JSite::getMenu();
by
$menu = JFactory::getApplication()->getMenu();

wherever it is used.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

fixed at 3 places in the code.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/