[Plugin: WoW Guild Retrieve] Little code correction
-
Old Code
if ($region = 'us') { $url = 'https://www.wowarmory.com/guild-info.xml'; } else { $url = 'https://eu.wowarmory.com/guild-info.xml'; }
New Code
if ($region == 'us') { $url = 'https://www.wowarmory.com/guild-info.xml'; } else { $url = 'https://eu.wowarmory.com/guild-info.xml'; }
And a little modification on R string for the world server with ‘s in the name.
old code
$url .= '?r=' . $realm . '&n=' . $guild . '&p=1';
new code
$url .= '?r=' . stripslashes($realm) . '&n=' . $guild . '&p=1';
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: WoW Guild Retrieve] Little code correction’ is closed to new replies.