diff --git a/lib/visualpatterns/PatternMainPage.inc b/lib/visualpatterns/PatternMainPage.inc index 5f43b55..16c6324 100644 --- a/lib/visualpatterns/PatternMainPage.inc +++ b/lib/visualpatterns/PatternMainPage.inc @@ -128,7 +128,6 @@ class PatternMainPage { */ function render() { global $default; - $bNN4 = (($default->browser == "moz") && ($default->version <= "4.79") || ($default->browser == "ns")); $sToRender = "\n"; $sToRender .= "\n"; $sToRender .= "The KnowledgeTree"; @@ -139,7 +138,7 @@ class PatternMainPage { "\n" . "onLoadJavaScript) ? "onload=\"$this->onLoadJavaScript\"" : "") . ">\n"; // hack to circumvent the crapness of ns 4.79 - if (!$bNN4 ) { + if (!$default->bNN4 && $this->bScroll) { $sToRender .= "
" . "\tgraphicsUrl . "/down.gif\" width=\"18\" height=\"9\" alt=\"up\" border=\"0\">" . "
" . @@ -178,7 +177,7 @@ class PatternMainPage { if (isset($this->oCentralPayload)) { // hack to circumvent the crapness of ns 4.79 - if (!$bNN4 && $this->bScroll) { + if (!$default->bNN4 && $this->bScroll) { $sToRender .= "\t
\n \t\t
\n"; } @@ -190,7 +189,7 @@ class PatternMainPage { $sToRender = $sToRender . "\nCentral payload not set\n"; } // hack to circumvent the crapness of ns 4.79 - if (! $bNN4 ) { + if (!$default->bNN4 && $this->bScroll) { $sToRender = $sToRender . "
\n"; } $sToRender = $sToRender . "\n" . @@ -214,7 +213,7 @@ class PatternMainPage { $sUrl = $default->uiUrl; // hack to circumvent the crapness of ns 4.79 - if (!$bNN4 && $this->bScroll) { + if (!$default->bNN4 && $this->bScroll) { $sJavaScript = "\n"; } $sJavaScript .= "\n";