From 84b8cf26000c8709c49ff8811dc6c7c34b1406f0 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 11 Apr 2015 21:19:05 +0200 Subject: Fix missing lexers in get_lexers Broken by a11e06d4906c2e1186779b42d5e87a17f66c50ea which changed names back to a normal array. Signed-off-by: Florian Pritz --- application/libraries/Pygments.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'application') 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; } -- cgit v1.2.3-24-g4f1b