@@ -32,6 +32,7 @@ public function uiView(Zikula_DisplayHook $hook)
32
32
{
33
33
// work out the input from the hook
34
34
$ mod = $ hook ->getCaller ();
35
+ $ areaId = $ hook ->getAreaId ();
35
36
$ objectid = $ hook ->getId ();
36
37
37
38
// first check if the user is allowed to do any comments for this module/objectid
@@ -70,7 +71,7 @@ public function uiView(Zikula_DisplayHook $hook)
70
71
$ numitems = -1 ;
71
72
}
72
73
73
- $ params = compact ('mod ' , 'objectid ' , 'sortorder ' , 'status ' , 'numitems ' , 'startnum ' );
74
+ $ params = compact ('mod ' , 'areaId ' , ' objectid ' , 'sortorder ' , 'status ' , 'numitems ' , 'startnum ' );
74
75
$ items = ModUtil::apiFunc ('EZComments ' , 'user ' , 'getall ' , $ params );
75
76
76
77
if ($ items === false ) {
@@ -88,16 +89,16 @@ public function uiView(Zikula_DisplayHook $hook)
88
89
// create the output object
89
90
$ view = Zikula_View::getInstance ('EZComments ' , false , null , true );
90
91
91
- $ view ->assign ('areaid ' , $ hook -> getAreaId ());
92
- $ view ->assign ('comments ' , $ items );
93
- $ view ->assign ('commentcount ' , $ commentcount );
94
- $ view ->assign ('ezcomment ' , $ ezcomment );
95
- $ view ->assign ('ezc_info ' , compact ('mod ' , 'objectid ' , 'sortorder ' , 'status ' ));
96
- $ view ->assign ('modinfo ' , ModUtil::getInfo (ModUtil::getIdFromName ($ mod )));
97
- $ view ->assign ('msgmodule ' , System::getVar ('messagemodule ' , '' ));
98
- $ view ->assign ('prfmodule ' , System::getVar ('profilemodule ' , '' ));
99
- $ view ->assign ('allowadd ' , SecurityUtil::checkPermission ('EZComments:: ' , "$ mod: $ objectid: " , ACCESS_COMMENT ));
100
- $ view ->assign ('loggedin ' , UserUtil::isLoggedIn ());
92
+ $ view ->assign ('areaid ' , $ areaId )
93
+ ->assign ('comments ' , $ items )
94
+ ->assign ('commentcount ' , $ commentcount )
95
+ ->assign ('ezcomment ' , $ ezcomment )
96
+ ->assign ('ezc_info ' , compact ('mod ' , 'objectid ' , 'sortorder ' , 'status ' ))
97
+ ->assign ('modinfo ' , ModUtil::getInfo (ModUtil::getIdFromName ($ mod )))
98
+ ->assign ('msgmodule ' , System::getVar ('messagemodule ' , '' ))
99
+ ->assign ('prfmodule ' , System::getVar ('profilemodule ' , '' ))
100
+ ->assign ('allowadd ' , SecurityUtil::checkPermission ('EZComments:: ' , "$ mod: $ objectid: " , ACCESS_COMMENT ))
101
+ ->assign ('loggedin ' , UserUtil::isLoggedIn ());
101
102
102
103
$ modUrl = $ hook ->getUrl ();
103
104
$ redirect = (!is_null ($ modUrl )) ? $ modUrl ->getUrl () : '' ;
0 commit comments