Update for wowhead include script

TarPalantir - October 4, 2009 - 17:31
Project:Lootz Item Filter
Version:6.x-1.0
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

Wowhead javascript inclusion has changed
from:
http://www.wowhead.com/widgets/power.js"
to:
http://static.wowhead.com/widgets/power.js
The second link is faster than the first, please update in wowhead.inc file (at end of file):

/**
* Implementation of lootz_hook_init().
*/
function lootz_wowhead_init() {
// Include the external js.
//drupal_set_html_head(''."\n");
drupal_set_html_head(''."\n");
}

Sorry for my english... :)

#1

TarPalantir - October 4, 2009 - 17:34

Sorry i am a noob with drupal filters, the code is:

/**
* Implementation of lootz_hook_init().
*/
function lootz_wowhead_init() {
  // Include the external js.
  //drupal_set_html_head('<script src="http://www.wowhead.com/widgets/power.js"></script>'."\n");
  drupal_set_html_head('<script src="http://static.wowhead.com/widgets/power.js"></script>'."\n");
}

#2

professorbikeybike - October 4, 2009 - 20:09
Status:active» fixed

Thanks TarPalantir, committed to both 6.x and 7.x

#3

System Message - October 18, 2009 - 20:10
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.