После обновления с 1.5 до 2.5 перестал работать шаблон. Решил адаптировать. шаблон работает на T3 Framework не могу исправить горизонтальное меню.
Ошибки такие
Strict Standards: Non-static method JATemplateHelper::getInstance() should not be called statically, assuming $this from incompatible context in Z:\home\localhost\www\257\templates\wedding\
index.php on line 21Strict Standards: Declaration of JParameter::loadSetupFile() should be compatible with that of JRegistry::loadSetupFile() in Z:\home\localhost\www\257\libraries\
loader.php on line 197Strict Standards: Only variables should be assigned by reference in Z:\home\localhost\www\257\templates\wedding\libs\menu\
base.class.php on line 46Strict Standards: Non-static method JSite::getMenu() should not be called statically, assuming $this from incompatible context in Z:\home\localhost\www\257\templates\wedding\libs\menu\
base.class.php on line 50Strict Standards: Non-static method JApplication::getMenu() should not be called statically, assuming $this from incompatible context in Z:\home\localhost\www\257\includes\
application.php on line 539Strict Standards: Only variables should be assigned by reference in Z:\home\localhost\www\257\templates\wedding\libs\menu\base.class.php on line 50
Notice: Undefined property: stdClass::$name in Z:\home\localhost\www\257\templates\wedding\libs\menu\
base.class.php on line 59[Денвер: показать возможную причину ошибки]
Notice: Undefined property: stdClass::$name in Z:\home\localhost\www\257\templates\wedding\libs\menu\base.class.php on line 59
\index.php on line 21
18. // no direct access
19. defined( '_JEXEC' ) or die( 'Restricted access' );
20. include_once (dirname(__FILE__).DS.'libs'.DS.'ja.template.helper.php');
21. $tmplTools = JATemplateHelper::getInstance($this, array('ui', JA_TOOL_SCREEN, JA_TOOL_MENU, 'main_layout', 'direction'));
\base.class.php on line 46
37. //$this->loadMenu();
38. }
39. function createParameterObject($param, $path='', $type='menu') {
40. return new JParameter($param, $path);
41. }
42. function getPageTitle ($params) {
43. return $params->get ('page_title');
44. }
45. function loadMenu(){
46. $user =& JFactory::getUser();
47. $children = array ();
48. $aid = $user->get('aid', 0);
\base.class.php on line 50
49. // Get Menu Items
50. $items = &JSite::getMenu();
51. $rows = $items->getItems('menutype', $this->getParam('menutype'));
52. if(!count($rows))
53. $rows = $items->getItems('menutype', 'mainmenu');
54. if(!count($rows)) return;
\base.class.php on line 59
55. // first pass - collect children
56. $cacheIndex = array();
57. $this->items = array();
58. foreach ($rows as $index => $v) {
59. $v->name = str_replace ('&', '&', str_replace ('&', '&', $v->name));
60. if ($v->access <= $aid) {
61. $pt = $v->parent;
62. $list = @ $children[$pt] ? $children[$pt] : array ();
63. $v->megaparams = $this->parseTitle ($v->name);
64. $v->megaparams->set('class', str_replace (',', ' ', $v->megaparams->get('class', '')));
65. $v->name = trim($v->megaparams->get('title'));
если надо скину шаблон.