Extension talk:WoWItem

i changed a few lines in the file urlreader.php to be able to use german item names.

function itemstats_read_url($url) {        global $wgLanguageCode; // Try cURL first. If that isn't available, check if we're allowed to        // use fopen on URLs. If that doesn't work, just die. if (function_exists('curl_init')) {                $ch = curl_init($url); curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $language = $wgLanguageCode; curl_setopt ($ch, CURLOPT_HTTPHEADER, array("Accept-Language: ".$language.",".$language."-".$language.";"));

probably it would be better to include an additional tag like lang inside of the tag, i.e. . perhaps it makes sense to include a array of the available armory languages and check if the wiki language is one of them, if not "en" should be used. i only hacked in fix to use the wiki language.