Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1170051
D128.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Sep 27, 12:06 AM
Size
873 B
Mime Type
text/x-diff
Expires
Sun, Sep 28, 12:06 AM (17 h, 38 m)
Engine
blob
Format
Raw Data
Handle
758045
Attached To
D128: INP-1475 - Teach "st_ContentBlock" tag to recognize "button_title" parameter
D128.diff
View Options
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
Log In to Comment