diff --git a/application/itopwebpage.class.inc.php b/application/itopwebpage.class.inc.php index f5a6481ab..f5dc9bdc4 100644 --- a/application/itopwebpage.class.inc.php +++ b/application/itopwebpage.class.inc.php @@ -675,18 +675,26 @@ EOF // jQuery scripts may face some spurious problems (like failing on a 'reload') foreach($this->a_linked_stylesheets as $a_stylesheet) { + if (strpos($a_stylesheet['link'], '?') === false) + { + $s_stylesheet = $a_stylesheet['link']."?itopversion=".ITOP_VERSION; + } + else + { + $s_stylesheet = $a_stylesheet['link']."&itopversion=".ITOP_VERSION; + } if ($a_stylesheet['condition'] != "") { $sHtml .= "\n"; } } // special stylesheet for printing, hides the navigation gadgets - $sHtml .= "\n"; + $sHtml .= "\n"; if ($this->GetOutputFormat() == 'html') { @@ -764,7 +772,7 @@ EOF $sHtml .= "\n"; } $sHtml .= "\n"; - $sHtml .= "\n"; + $sHtml .= "\n"; $sHtml .= "\n"; $sBodyClass = ""; diff --git a/application/webpage.class.inc.php b/application/webpage.class.inc.php index 6e50c892a..97a1831af 100644 --- a/application/webpage.class.inc.php +++ b/application/webpage.class.inc.php @@ -525,11 +525,19 @@ class WebPage implements Page $this->output_dict_entries(); foreach($this->a_linked_stylesheets as $a_stylesheet) { + if (strpos($a_stylesheet['link'], '?') === false) + { + $s_stylesheet = $a_stylesheet['link']."?itopversion=".ITOP_VERSION; + } + else + { + $s_stylesheet = $a_stylesheet['link']."&itopversion=".ITOP_VERSION; + } if ($a_stylesheet['condition'] != "") { echo "\n"; @@ -547,7 +555,7 @@ class WebPage implements Page } if (class_exists('MetaModel') && MetaModel::GetConfig()) { - echo "\n"; + echo "\n"; } echo "\n"; echo "\n";