소스 검색

Fix to translations

svalavuo 5 일 전
부모
커밋
f67a3c51bf
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      database_migrations/create_images_table.sql
  2. 2 2
      includes/translation.php

+ 1 - 1
database_migrations/create_images_table.sql

@@ -14,4 +14,4 @@ CREATE TABLE IF NOT EXISTS images (
 );
 
 -- Add foreign key constraint if users table exists
--- ALTER TABLE images ADD CONSTRAINT fk_images_user FOREIGN KEY (uploaded_by) REFERENCES users(id) ON DELETE SET NULL;
+ALTER TABLE images ADD CONSTRAINT fk_images_user FOREIGN KEY (uploaded_by) REFERENCES users(id) ON DELETE SET NULL;

+ 2 - 2
includes/translation.php

@@ -78,8 +78,8 @@ class Translation {
             }
         }
         
-        // Check configuration default (but prefer English for public site)
-        if (defined('DEFAULT_LANGUAGE') && isset($this->supportedLanguages[DEFAULT_LANGUAGE]) && DEFAULT_LANGUAGE !== 'fi') {
+        // Check configuration default
+        if (defined('DEFAULT_LANGUAGE') && isset($this->supportedLanguages[DEFAULT_LANGUAGE])) {
             $this->currentLanguage = DEFAULT_LANGUAGE;
             return;
         }