Re: [openupload-devel] Problems with grouponip plugin
Status: Beta
Brought to you by:
tsdogs
|
From: Alessandro B. <ts...@br...> - 2011-04-09 11:48:39
|
On Fri, 8 Apr 2011 13:21:05 +0200 (CEST), wal...@no... wrote: > I seem to have found a fix, but I'm not sure there is no side effect > : if > anyone could tell me if what I'm doing is safe : > > in openuload/lib/main.inc.php , I move $this->initPlugins(); upper > in the > file source so now it reads : > > $this->initPlugins(); > /* get the handling module */ > $mname = $this->actions[$this->action]; > $m = &$this->modules[$mname]; > $group = $this->user->group(); > > > As the init function of grouponip module is setting the user group, > the > call to $group = $this->user->group() gets a valid value and my > problems > are solved. > > Any thoughts on this ? > > Regards, > Yeah, that's probably it. AFAIR this should not give any side effect unless the plugins init function does not rely on the action and group. Alessandro |