Page MenuHomeIn-Portal Phabricator

D128.diff
No OneTemporary

File Metadata

Created
Mon, Jan 6, 3:46 AM

D128.diff

Index: branches/5.2.x/core/units/content/content_tp.php
===================================================================
--- branches/5.2.x/core/units/content/content_tp.php
+++ branches/5.2.x/core/units/content/content_tp.php
@@ -35,7 +35,15 @@
$params['template'] = 'categories/edit_content';
$params['button_icon'] = 'content_mode.png';
$params['button_class'] = 'cms-edit-btn';
- $params['button_title'] = '+' . $this->Application->Phrase('la_btn_EditContent', false, true);
+
+ if ( isset($params['button_title']) && $params['button_title'] ) {
+ $button_phrase = $params['button_title'];
+ }
+ else {
+ $button_phrase = 'la_btn_EditContent';
+ }
+
+ $params['button_title'] = '+' . $this->Application->Phrase($button_phrase, false, true);
if ( defined('DEBUG_MODE') && DEBUG_MODE ) {
$params['button_title'] .= ' - #' . $params['num'];

Event Timeline