From: Gabriel Wicke Date: Fri, 25 Jun 2004 22:16:00 +0000 (+0000) Subject: check if stylepath and skin is set (can happen if user didn't get the generated js... X-Git-Tag: 1.5.0alpha1~2776 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=288d01d0dbf1f040aa601f46798314cf874312b6;p=lhc%2Fweb%2Fwiklou.git check if stylepath and skin is set (can happen if user didn't get the generated js for some reason) --- diff --git a/stylesheets/wikibits.js b/stylesheets/wikibits.js index d297157b52..fbae991b60 100644 --- a/stylesheets/wikibits.js +++ b/stylesheets/wikibits.js @@ -27,14 +27,15 @@ else if (window.attachEvent) window.attachEvent("onload",onloadhook); // document.write special stylesheet links -if (is_opera_preseven) { - document.write(''); -} else if (is_opera_seven) { - document.write(''); -} else if (is_khtml) { - document.write(''); +if(typeof stylepath != 'undefined' && typeof skin != 'undefined') { + if (is_opera_preseven) { + document.write(''); + } else if (is_opera_seven) { + document.write(''); + } else if (is_khtml) { + document.write(''); + } } - // Un-trap us from framesets if( window.top != window ) window.top.location = window.location;