Page 8 of 9

Re: Feedback and Reports for Release v0.15

Posted: 04 Feb 2015, 13:25
by Lumpik
Hi,

I have issue with removeMenuItem() function when using the admin options ($playerAction parameter = false).

I've added a Quad() into the admin+user menu (both works) and i want to remove those icon.

Icon is removed from user menu with :

Code: Select all

$this->maniaControl->actionsMenu->removeMenuItem(69, true);
But it's not removed from admin menu with :

Code: Select all

$this->maniaControl->actionsMenu->removeMenuItem(69, false);
I've tried other numbers than 69 (with addMenuItem() + removeMenuItem()) but it always works with "true" and never with "false".

Could you tell me what's wrong ?
The code in https://github.com/ManiaControl/ManiaCo ... nsMenu.php looks fine...

Re: Feedback and Reports for Release v0.15

Posted: 04 Feb 2015, 20:56
by Lumpik
OK, i've found the bug.
We both had read the code too fast...

In https://github.com/ManiaControl/ManiaCo ... nsMenu.php :
public function removeMenuItem($order, $playerAction = true) {
if ($playerAction) {
if (isset($this->playerMenuItems[$order])) {
unset($this->playerMenuItems[$order]);
}
} else {
if (isset($this->playerMenuItems[$order])) {
unset($this->adminMenuItems[$order]);
}
}
$this->rebuildAndShowMenu();
}

Re: Feedback and Reports for Release v0.15

Posted: 05 Feb 2015, 19:39
by Lumpik
I still have ManiaControl v0.156 and "/admin coreupdate" don't update to v0.157 :(

Re: Feedback and Reports for Release v0.15

Posted: 07 Feb 2015, 23:52
by Lumpik
Our permissions are OK, as we're using 777.

Check your release, there's no MC v0.157 in http://www.maniacontrol.com/servers

Re: Feedback and Reports for Release v0.15

Posted: 08 Feb 2015, 16:08
by Lumpik
v0.156 was already the last version before I mentioned the bug.
kremsy wrote:Thanks for the report, fixed and update released!
So what did you mean by "udpate released" ?
If you meant only on GitHub, could we have the update released in ManiaControl too please ?