summaryrefslogtreecommitdiffstats
path: root/application/libraries/Pygments.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-04-11 21:19:05 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-04-11 21:20:23 +0200
commit84b8cf26000c8709c49ff8811dc6c7c34b1406f0 (patch)
tree1e9a64379d2e3763692b49df3c339991af4b17bc /application/libraries/Pygments.php
parenta11e06d4906c2e1186779b42d5e87a17f66c50ea (diff)
Fix missing lexers in get_lexers
Broken by a11e06d4906c2e1186779b42d5e87a17f66c50ea which changed names back to a normal array. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/libraries/Pygments.php')
-rw-r--r--application/libraries/Pygments.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/libraries/Pygments.php b/application/libraries/Pygments.php
index 04d4e670c..0c536008d 100644
--- a/application/libraries/Pygments.php
+++ b/application/libraries/Pygments.php
@@ -31,12 +31,12 @@ class Pygments {
}
public static function get_lexers() {
- return cache_function('lexers', 1800, function() {
+ return cache_function('lexers-v2', 1800, function() {
$last_desc = "";
foreach (self::get_pygments_info() as $lexer) {
$desc = $lexer['fullname'];
- $name = array_keys($lexer['names'])[0];
+ $name = $lexer['names'][0];
if ($desc == $last_desc) {
continue;
}