Rename all the method & class names
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

Hi,

I'm including the Mobile detect class ( http://mobiledetect.net/ ) in my site.

but I keep getting a Cannot redeclare class Mobile_Detect.

So I would like someone to rename all of the functions, methods, classes.

adding wa_ as a prefix would be good.

Thanks

may be i can help with this, but i guess you are declaring same class twice or using this name on other class ? if you really need this i will be working on to rename all the classes
Subhash Dasyam 8 months ago
awarded to Subhash Dasyam

Crowdsource coding tasks.

1 Solution

Winning solution

https://gist.github.com/subhashdasyam/40c63d31706f6e548f5334a1060e14d6

include('wa_Mobile_Detect.php');

$mobile = wa_Mobile_Detect();

Test it and please let me know

Hi @davesargent have you tested my solution yet ?
Subhash Dasyam 8 months ago