Skip to content

Commit

Permalink
chg: always set language name
Browse files Browse the repository at this point in the history
As suggested in GeSHi#123 this always initializes the language name, even if
the language file cannot be found later.
  • Loading branch information
splitbrain committed Apr 29, 2020
1 parent fd22ab7 commit 9e8ed43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/geshi.php
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,8 @@ public function set_language($language, $force_reset = false) {
}

$this->language = $language;
// ensure the language name is set even if the file cannot be loaded in the next step
$this->language_data['LANGUAGE_NAME'] = $language;

//Check if we can read the desired file
if (!is_readable($file_name)) {
Expand Down

0 comments on commit 9e8ed43

Please sign in to comment.