XF 2.1 How to clone an addon?

Robert9

Well-known member
I have cloned an addon.
In both versions i have something like

class User extends XFCP_User
{

and some methods with the same name.
What i need now is to do something like

1)
check the addon we come from!
Is is addon 1 go and work hard for me!
is it addon 2 leave me alone!

and in the other file

check the addon we come from!
Is is addon 2 go and work hard for me!
is it addon 1 leave me alone!


How can i do that check?


2)
or maybe i should just delete one of the methods that are here now twice times?

3)
or should i rename that methods in orginal and original2?
 
Back
Top Bottom