[Fixed] Namespace bug in classes Canyon, Storm and Title

Maniaplanet public API, ManiaConnect system and the open source PHP SDK.

Moderator: NADEO

Post Reply
User avatar
Electron
Posts: 797
Joined: 15 Jun 2010, 18:02
Contact:

[Fixed] Namespace bug in classes Canyon, Storm and Title

Post by Electron »

Throwing an exception in class Canyon, Storm and Title fail because the class Exception were not found.

Code: Select all

throw new Exception();
must be replaced with

Code: Select all

throw new \Maniaplanet\WebServices\Exception();
Image
TM²: TrackMania Telemetry Monitor version 1.2.4
User avatar
magnetik
Posts: 1673
Joined: 01 Feb 2012, 19:13
Location: Bordeaux
Contact:

Re: [3.0.4] Namespace bug in classes Canyon, Storm and Title

Post by magnetik »

Fixed in upstream.

A new version will be published.

Thanks! :clap:
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
User avatar
magnetik
Posts: 1673
Joined: 01 Feb 2012, 19:13
Location: Bordeaux
Contact:

Re: [Fixed] Namespace bug in classes Canyon, Storm and Title

Post by magnetik »

Fixed in 3.0.6
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
Post Reply

Return to “Maniaplanet Web Services”

Who is online

Users browsing this forum: No registered users and 1 guest