From 58375fa9e6db4a389fd6029ee1ad14ddb0dc9e90 Mon Sep 17 00:00:00 2001 From: epriestley Date: Sat, 2 Jul 2016 05:22:55 -0700 Subject: [PATCH] (stable) Fix a flipped higlight vs no-highlight condition Ref T11257. Auditors: chad --- .../diffusion/controller/DiffusionBrowseController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/diffusion/controller/DiffusionBrowseController.php b/src/applications/diffusion/controller/DiffusionBrowseController.php index 2d0ea7770b..3ae076a5d0 100644 --- a/src/applications/diffusion/controller/DiffusionBrowseController.php +++ b/src/applications/diffusion/controller/DiffusionBrowseController.php @@ -684,7 +684,7 @@ final class DiffusionBrowseController extends DiffusionController { } else { require_celerity_resource('syntax-highlighting-css'); - if (!$can_highlight) { + if ($can_highlight) { $highlighted = PhabricatorSyntaxHighlighter::highlightWithFilename( $path, $file_corpus);