]> git.mjollnir.org Git - moodle.git/commitdiff
Fixing up script tag for compliance
authormoodler <moodler>
Sun, 17 Sep 2006 03:40:22 +0000 (03:40 +0000)
committermoodler <moodler>
Sun, 17 Sep 2006 03:40:22 +0000 (03:40 +0000)
blocks/admin_tree/block_admin_tree.php

index 663f384ff04ef49b0f9aff18c575504b0a31fdc7..4dd28aec511d4707dfeb50152072598f3bc04b74 100644 (file)
@@ -120,7 +120,7 @@ class block_admin_tree extends block_base {
        
         if ($this->tempcontent !== '') {
             $this->content = new stdClass;
-            $this->content->text = '<script language="JavaScript">' . "\n\n";
+            $this->content->text = '<script type="text/javascript">' . "\n\n";
             $this->content->text .= 'var vh_numspans = ' . ($this->spancounter - 1) . ';' . "\n";
             $this->content->text .= 'var vh_content = new Array();' . "\n";
             $this->content->text .= 'function getspan(spanid) {' . "\n";
@@ -174,7 +174,7 @@ class block_admin_tree extends block_base {
             $this->content->text .= $this->tempcontent;
   
             $this->content->text .= '</div>' . "\n";
-            $this->content->text .= '<script language="JavaScript">' . "\n";
+            $this->content->text .= '<script type="text/javascript">' . "\n";
             $this->content->text .= 'collapseall();' . "\n";
             $this->content->text .= $this->expandjavascript;