Code: Select all
Strict Standards: Non-static method JSite::getMenu() should not be called statically in [...]/components/com_phocadownload/router.php on line 38
Code: Select all
Strict Standards: Non-static method JSite::getMenu() should not be called statically in [...]/components/com_phocadownload/router.php on line 38
If you code over 100.000 lines of code which needed to work in php4, in fact there is no chance to follow strict standards recommendations.Why the author decided to call it statically?

Code: Select all
$menu = &JSite::getMenu();Code: Select all
$site = new JSite();
$menu = $site->getMenu();
in fact no, this is only a habit, Joomla! has a lot of static functions, e.g. JText::_() is called everywhere, in fact you will find the static functions in all code of Joomla! This is why I didn't "think" about the using not static function in this case.Is there a particular reason for you to prefer the "static call"?