Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1169885
D128.id1074.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
Fri, Sep 26, 11:25 PM
Size
828 B
Mime Type
text/x-diff
Expires
Sat, Sep 27, 11:25 PM (20 h, 35 m)
Engine
blob
Format
Raw Data
Handle
758016
Attached To
D128: INP-1475 - Teach "st_ContentBlock" tag to recognize "button_title" parameter
D128.id1074.diff
View Options
Index: core/units/content/content_tp.php
===================================================================
--- core/units/content/content_tp.php
+++ 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