Skip to content

Commit 9e8ed43

Browse files
committed
chg: always set language name
As suggested in GeSHi#123 this always initializes the language name, even if the language file cannot be found later.
1 parent fd22ab7 commit 9e8ed43

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/geshi.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,8 @@ public function set_language($language, $force_reset = false) {
669669
}
670670

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

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

0 commit comments

Comments
 (0)