Index: trunk/core/kernel/languages/phrases_cache.php =================================================================== diff -u -N -r8402 -r8437 --- trunk/core/kernel/languages/phrases_cache.php (.../phrases_cache.php) (revision 8402) +++ trunk/core/kernel/languages/phrases_cache.php (.../phrases_cache.php) (revision 8437) @@ -74,6 +74,11 @@ return is_array($this->Ids) && count($this->Ids) > 0 && $this->Ids != $this->OriginalIds; } + /** + * Copy from Application->UpdateCache method + * + * @deprecated + */ function UpdateCache() { $update = false; @@ -107,8 +112,8 @@ $translated_label = $this->Phrases[$label]; // debug mode is checked directly to improve performance if (defined('DEBUG_MODE') && DEBUG_MODE && constOn('DBG_PHRASES_HIGHLIGHT')) { - if (!$this->Application->isDebugMode()) return $translated_label; - + if (!$this->Application->isDebugMode()) return $translated_label; + if ($this->Application->IsAdmin()) { $sql = 'SELECT Module FROM '.TABLE_PREFIX.'Phrase @@ -120,7 +125,7 @@ // highlight text created via translated phrase (used to detect if text on screen is phrase or not) $translated_label = ''.$translated_label.' '.$original_label.''; } - + } return $translated_label; } @@ -150,7 +155,7 @@ // direct link, when not using popups OR on frontend $edit_url = $this->Application->HREF($edit_tpl,'',Array('m_opener'=>'d','phrases_label'=>$original_label,'phrases_event'=>'OnNew', 'pass'=>'all,phrases'), $index_file ); } - + $translation = '!'.$label.'!'; if($this->fromTag) $translation = $this->escapeTagReserved($translation); }