Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1046447
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
Sat, Jun 28, 7:15 PM
Size
486 B
Mime Type
text/x-diff
Expires
Sun, Jun 29, 7:15 PM (12 h, 31 m)
Engine
blob
Format
Raw Data
Handle
676115
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