Skip to content

Commit

Permalink
fix: added missing fallback of English configuration items
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Jan 11, 2025
1 parent b80de1e commit 19a774d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion phpmyfaq/src/phpMyFAQ/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ public function addTo(string $address, ?string $name = null): bool
*/
public function send(): int
{
// Sanity check
// Check
if (count($this->to) + count($this->cc) + count($this->bcc) < 1) {
throw new Exception(
'<strong>Mail Class</strong>: you need at least to set one recipient among TO, CC and BCC!'
Expand Down
1 change: 1 addition & 0 deletions phpmyfaq/src/phpMyFAQ/Translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ protected function filename(string $language): string
private static function fetchTranslationFile(): array
{
$LANG_CONF = [];
include self::$translation->filename('en');
include self::$translation->filename(self::$translation->currentLanguage);

return $LANG_CONF;
Expand Down

0 comments on commit 19a774d

Please sign in to comment.