Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F800421
in-portal
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, Feb 22, 12:07 AM
Size
1 KB
Mime Type
text/x-diff
Expires
Mon, Feb 24, 12:07 AM (4 h, 39 m)
Engine
blob
Format
Raw Data
Handle
573676
Attached To
rINP In-Portal
in-portal
View Options
Index: branches/5.2.x/core/units/content/content_tp.php
===================================================================
--- branches/5.2.x/core/units/content/content_tp.php (revision 16742)
+++ branches/5.2.x/core/units/content/content_tp.php (revision 16743)
@@ -1,49 +1,57 @@
<?php
/**
* @version $Id$
* @package In-Portal
* @copyright Copyright (C) 1997 - 2012 Intechnic. All rights reserved.
* @license GNU/GPL
* In-Portal is Open Source software.
* This means that this software may have been modified pursuant
* the GNU General Public License, and as distributed it includes
* or is derivative of works licensed under the GNU General Public License
* or other free or open source software licenses.
* See http://www.in-portal.org/license for copyright notices and details.
*/
defined('FULL_PATH') or die('restricted access!');
class ContentTagProcessor extends kDBTagProcessor {
/**
* Creates a button for editing item in Admin Console
*
* @param Array $params
* @return string
* @access protected
*/
protected function AdminEditButton($params)
{
if ( EDITING_MODE != EDITING_MODE_CONTENT ) {
return '';
}
$params['admin'] = 1;
$params['temp_mode'] = 0;
$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'];
}
unset($params['num']);
return parent::AdminEditButton($params);
}
}
Event Timeline
Log In to Comment