Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1243887
D95.id.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
Thu, Nov 20, 8:24 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Fri, Nov 21, 8:24 PM (22 m, 29 s)
Engine
blob
Format
Raw Data
Handle
809319
Attached To
D95: INP-1446 - Ignore draft page revisions, when content revision control is turned off
D95.id.diff
View Options
Index: branches/5.2.x/core/units/helpers/page_helper.php
===================================================================
--- branches/5.2.x/core/units/helpers/page_helper.php
+++ branches/5.2.x/core/units/helpers/page_helper.php
@@ -177,8 +177,10 @@
$editing_mode = $this->Application->GetVar('editing_mode'); // not in a EDITING_MODE constant, while in admin console
$revision_clause = $table_name . 'RevisionNumber = ' . $live_revision_number . ' AND ' . $table_name . 'IsDraft = 0';
- if ( $this->Application->GetVar('preview') || $editing_mode == EDITING_MODE_CONTENT ) {
- $revision_clause = '(' . $table_name . 'CreatedById = ' . $user_id . ' AND ' . $table_name . 'IsDraft = 1) OR (' . $revision_clause . ')';
+ if ( $this->Application->ConfigValue('EnablePageContentRevisionControl') ) {
+ if ( $this->Application->GetVar('preview') || $editing_mode == EDITING_MODE_CONTENT ) {
+ $revision_clause = '(' . $table_name . 'CreatedById = ' . $user_id . ' AND ' . $table_name . 'IsDraft = 1) OR (' . $revision_clause . ')';
+ }
}
}
Event Timeline
Log In to Comment