Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F773074
D323.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
Sun, Feb 2, 12:56 AM
Size
486 B
Mime Type
text/x-diff
Expires
Mon, Feb 3, 12:56 AM (11 h, 54 m)
Engine
blob
Format
Raw Data
Handle
556337
Attached To
D323: INP-1724 - Define "EDITING_MODE" constant, when not present
D323.id.diff
View Options
Index: branches/5.2.x/core/kernel/application.php
===================================================================
--- branches/5.2.x/core/kernel/application.php
+++ branches/5.2.x/core/kernel/application.php
@@ -385,6 +385,10 @@
if ( PHP_SAPI !== 'cli' && !$this->isAdmin ) {
$this->HandleEvent(new kEvent('adm:OnStartup'));
}
+ else {
+ // User can't edit anything in Admin Console or in CLI mode.
+ kUtil::safeDefine('EDITING_MODE', '');
+ }
return true;
}
Event Timeline
Log In to Comment