Dtree javascript error in WPG2 Page

thehooligan

Joined: 2006-10-30
Posts: 9
Posted: Wed, 2008-04-02 04:33

The WPG2 Page has the following html output for the dtree javasript
<script type="text/javascript" src="/gallery2/modules/albumselect/dtree.js"></script>

When it should read
<script language="javascript" type="text/javascript" src="/gallery2/modules/albumselect/dtree.js"></script>

Note the lack of language attribute in the first piece of code.

This causes the Dtree not to work on the WPG2 page.

Can i correct this myself in a template somewhere?

I am using WPG2 v3.02 and Wordpress 2.3.3 with the default theme.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2008-04-03 00:18

Hiya thehooligan

This is defined on line 494 in wpg2functions.inc and the code is correctly defined.. (See below)

echo '<script language="javascript" type="text/javascript" src="'.get_bloginfo('wpurl').'/wp-content/plugins/wpg2/js/dtree.js"></script>'."\n";

Not sure why your code/output would be different to this..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
geddeth
geddeth's picture

Joined: 2004-05-16
Posts: 52
Posted: Thu, 2008-04-03 21:18

In any case, the language attribute is deprecated in HTML4, no? Why would you need it?