https://bugzilla.wikimedia.org/show_bug.cgi?id=20594





--- Comment #1 from Suyash jain <suyas...@net4.in>  2009-09-11 14:43:11 UTC ---
I also found that this entire lines are displayed by the following function in
includes/Skins.php


        static function makeVariablesScript( $data ) {
                global $wgJsMimeType;

                $r = "<script type= \"$wgJsMimeType\">/*<![CDATA[*/\n";
                foreach ( $data as $name => $value ) {
                        $encValue = Xml::encodeJsVar( $value );
                        $r .= "var $name = $encValue;\n";

                }       
                $r .= "/*]]>*/</script>\n";

                return $r;
        }


So i have changed it to the following 


        static function makeVariablesScript( $data ) {
                global $wgJsMimeType;

                $r = "<script type= \"$wgJsMimeType\">/*<![CDATA[*/\n";
                foreach ( $data as $name => $value ) {
                        $encValue = Xml::encodeJsVar( $value );
                        if($name =='wgDBname'){
                        }else{
                        $r .= "var $name = $encValue;\n";
                        }
                }
                $r .= "/*]]>*/</script>\n";

                return $r;
        }


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to