Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F804105
D248.id600.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
Wed, Feb 26, 9:06 AM
Size
647 B
Mime Type
text/x-diff
Expires
Thu, Feb 27, 9:06 AM (4 h, 45 m)
Engine
blob
Format
Raw Data
Handle
576819
Attached To
D248: INP-1584 - Add readonly mode to "st:ContentBlock" tag
D248.id600.diff
View Options
Index: core/units/categories/categories_tag_processor.php
===================================================================
--- core/units/categories/categories_tag_processor.php
+++ core/units/categories/categories_tag_processor.php
@@ -1253,8 +1253,9 @@
$edit_code_before = $edit_code_after = '';
$inline_editing = isset($params['mode']) && $params['mode'] == 'inline';
+ $readonly = isset($params['mode']) && $params['mode'] == 'readonly';
- if ( EDITING_MODE == EDITING_MODE_CONTENT ) {
+ if ( EDITING_MODE == EDITING_MODE_CONTENT && !$readonly ) {
if ( $inline_editing ) {
$params['name'] = 'content_block_' . $num;
Event Timeline
Log In to Comment