Forums

[Plugin: WoW Guild Retrieve] Little code correction (2 posts)

  1. t0m0
    Member
    Posted 9 months ago #

    Old Code

    if ($region = 'us') {
    		$url = 'http://www.wowarmory.com/guild-info.xml';
    	} else {
    		$url = 'http://eu.wowarmory.com/guild-info.xml';
    	}

    New Code

    if ($region == 'us') {
    		$url = 'http://www.wowarmory.com/guild-info.xml';
    	} else {
    		$url = 'http://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';

    http://wordpress.org/extend/plugins/wow-guild-retrieve/

  2. manatrance
    Member
    Posted 9 months ago #

    Thanks for that, I missed it on my last read-through.

    I've made the changes and they'll be in the 0.9.1 release.

Reply

You must log in to post.

About this Topic