From: <var...@us...> - 2016-01-07 09:46:35
|
Revision: 9759 http://sourceforge.net/p/phpwiki/code/9759 Author: vargenau Date: 2016-01-07 09:46:33 +0000 (Thu, 07 Jan 2016) Log Message: ----------- Use __construct Modified Paths: -------------- trunk/lib/WikiGroup.php Modified: trunk/lib/WikiGroup.php =================================================================== --- trunk/lib/WikiGroup.php 2016-01-07 09:38:20 UTC (rev 9758) +++ trunk/lib/WikiGroup.php 2016-01-07 09:46:33 UTC (rev 9759) @@ -62,8 +62,6 @@ public $username = ''; /** User object if different from current user */ public $user; - /** The global WikiRequest object */ - //public $request; /** Array of groups $username is confirmed to belong to */ public $membership; /** boolean if not the current user */ @@ -74,7 +72,7 @@ * $group = &WikiGroup::getGroup(); * @param bool $not_current */ - function WikiGroup($not_current = false) + function __construct($not_current = false) { $this->not_current = $not_current; } @@ -871,8 +869,6 @@ */ function isMember($group) { - //$request = $this->request; - //$username = $this->username; if (isset($this->membership[$group])) { return $this->membership[$group]; } @@ -988,8 +984,6 @@ if (isset($this->membership[$group])) { return $this->membership[$group]; } - //$request = $this->request; - //$username = $this->_getUserName(); $this->membership[$group] = in_array($this->username, $this->getMembersOf($group)); if ($this->membership[$group]) return true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |