Page MenuHomePhabricator

D12699.id30483.diff
No OneTemporary

D12699.id30483.diff

diff --git a/src/applications/celerity/CelerityStaticResourceResponse.php b/src/applications/celerity/CelerityStaticResourceResponse.php
--- a/src/applications/celerity/CelerityStaticResourceResponse.php
+++ b/src/applications/celerity/CelerityStaticResourceResponse.php
@@ -144,8 +144,11 @@
$uri = $this->getURI($map, $name);
$type = $map->getResourceTypeForName($name);
- $event_type = MultimeterEvent::TYPE_STATIC_RESOURCE;
- MultimeterControl::getInstance()->newEvent($event_type, 'rsrc.'.$name, 1);
+ $multimeter = MultimeterControl::getInstance();
+ if ($multimeter) {
+ $event_type = MultimeterEvent::TYPE_STATIC_RESOURCE;
+ $multimeter->newEvent($event_type, 'rsrc.'.$name, 1);
+ }
switch ($type) {
case 'css':

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 1, 7:01 PM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6737292
Default Alt Text
D12699.id30483.diff (771 B)

Event Timeline