Page MenuHomePhabricator

D12538.diff
No OneTemporary

D12538.diff

diff --git a/src/view/page/PhabricatorStandardPageView.php b/src/view/page/PhabricatorStandardPageView.php
--- a/src/view/page/PhabricatorStandardPageView.php
+++ b/src/view/page/PhabricatorStandardPageView.php
@@ -643,13 +643,19 @@
if ($console) {
$console_config = $this->getConsoleConfig();
}
+
+ $upload_enabled = false;
+ if ($controller) {
+ $upload_enabled = $controller->isGlobalDragAndDropUploadEnabled();
+ }
+
return array(
'title' => $this->getTitle(),
'aphlictDropdownData' => array(
$dropdown_query->getNotificationData(),
$dropdown_query->getConpherenceData(),
),
- 'globalDragAndDrop' => $controller->isGlobalDragAndDropUploadEnabled(),
+ 'globalDragAndDrop' => $upload_enabled,
'aphlictDropdowns' => $rendered_dropdowns,
'hisecWarningConfig' => $hisec_warning_config,
'consoleConfig' => $console_config,

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 1:59 AM (18 h, 44 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6920205
Default Alt Text
D12538.diff (928 B)

Event Timeline