Page MenuHomePhabricator

D11048.id26529.diff
No OneTemporary

D11048.id26529.diff

diff --git a/src/applications/config/check/PhabricatorSetupCheckPygment.php b/src/applications/config/check/PhabricatorSetupCheckPygment.php
--- a/src/applications/config/check/PhabricatorSetupCheckPygment.php
+++ b/src/applications/config/check/PhabricatorSetupCheckPygment.php
@@ -3,7 +3,6 @@
final class PhabricatorSetupCheckPygment extends PhabricatorSetupCheck {
protected function executeChecks() {
-
$pygment = PhabricatorEnv::getEnvConfig('pygments.enabled');
if ($pygment) {
@@ -47,6 +46,24 @@
->addPhabricatorConfig('environment.append-paths');
}
}
+ } else {
+ $summary = pht('Pygments should be installed and enabled '.
+ 'to provide advanced syntax highlighting.');
+
+ $message = pht(
+ 'The Pygments Python library provides advanced syntax '.
+ 'highlighting capabilities for over 300 languages.')."\n".
+ 'Pygments is optional and Phabricator will do syntax '.
+ 'highlighting without it. '."\n".
+ 'However enabling it will improve '.
+ 'Phabricators results for many languages.';
+
+ $this
+ ->newIssue('pygments.noenabled')
+ ->setName(pht('Pygments is not enabled/installed'))
+ ->setSummary($summary)
+ ->setMessage($message)
+ ->addRelatedPhabricatorConfig('pygments.enabled');
}
}
}

File Metadata

Mime Type
text/plain
Expires
Wed, Mar 26, 1:27 AM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7387870
Default Alt Text
D11048.id26529.diff (1 KB)

Event Timeline