Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1102209
D323.id811.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
Mon, Aug 18, 6:11 AM
Size
441 B
Mime Type
text/x-diff
Expires
Tue, Aug 19, 6:11 AM (1 h, 58 m)
Engine
blob
Format
Raw Data
Handle
714002
Attached To
D323: INP-1724 - Define "EDITING_MODE" constant, when not present
D323.id811.diff
View Options
Index: core/kernel/application.php
===================================================================
--- core/kernel/application.php
+++ 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