Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F726964
D323.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, Jan 6, 3:56 AM
Size
486 B
Mime Type
text/x-diff
Expires
Tue, Jan 7, 3:56 AM (3 d, 23 m ago)
Engine
blob
Format
Raw Data
Handle
537040
Attached To
D323: INP-1724 - Define "EDITING_MODE" constant, when not present
D323.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