summaryrefslogtreecommitdiffstats
path: root/application/libraries/Pygments.php
diff options
context:
space:
mode:
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;
}