Browse Source

No more find/replace of : in Dict strings

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2064 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 13 years ago
parent
commit
e54cafe945
1 changed files with 5 additions and 8 deletions
  1. 5 8
      application/dashlet.class.inc.php

+ 5 - 8
application/dashlet.class.inc.php

@@ -740,14 +740,13 @@ class DashletHeaderStatic extends Dashlet
 		$sTitle = $this->aProperties['title'];
 		$sIcon = $this->aProperties['icon'];
 
-		$sTitleReady = str_replace(':', '_', $sTitle);
 		$sIconPath = utils::GetAbsoluteUrlModulesRoot().$sIcon;
 
 		$oPage->add('<div class="dashlet-content">');
 		$oPage->add('<div class="main_header">');
 
 		$oPage->add('<img src="'.$sIconPath.'">');
-		$oPage->add('<h1>'.Dict::S($sTitleReady).'</h1>');
+		$oPage->add('<h1>'.Dict::S($sTitle).'</h1>');
 
 		$oPage->add('</div>');
 		$oPage->add('</div>');
@@ -830,8 +829,6 @@ class DashletHeaderDynamic extends Dashlet
 		$oFilter = DBObjectSearch::FromOQL($sQuery);
 		$sClass = $oFilter->GetClass();
 
-		$sTitleReady = str_replace(':', '_', $sTitle);
-		$sSubtitleReady = str_replace(':', '_', $sSubtitle);
 		$sIconPath = utils::GetAbsoluteUrlModulesRoot().$sIcon;
 
 		$aValues = null;
@@ -856,8 +853,8 @@ class DashletHeaderDynamic extends Dashlet
 			// Stats grouped by <group_by>
 			$aCSV = implode(',', $aValues);
 			$aExtraParams = array(
-				'title[block]' => $sTitleReady,
-				'label[block]' => $sSubtitleReady,
+				'title[block]' => $sTitle,
+				'label[block]' => $sSubtitle,
 				'status[block]' => $sGroupBy,
 				'status_codes[block]' => $aCSV,
 				'context_filter' => 1,
@@ -867,8 +864,8 @@ class DashletHeaderDynamic extends Dashlet
 		{
 			// Simple stats
 			$aExtraParams = array(
-				'title[block]' => $sTitleReady,
-				'label[block]' => $sSubtitleReady,
+				'title[block]' => $sTitle,
+				'label[block]' => $sSubtitle,
 				'context_filter' => 1,
 			);
 		}