Fix geo constant scope

This commit is contained in:
2026-08-27 12:53:58 +02:00
parent 17009b641f
commit da5a75a9de
5 changed files with 11 additions and 6 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ use \Settings;
abstract class Geo extends PhpObject {
protected const EXT = '';
private const GEO_FOLDER = 'geo';
private const OPT_SIMPLE = 'simplification';
protected const GEO_FOLDER = 'geo';
protected const OPT_SIMPLE = 'simplification';
protected array $asTracks;
protected string $sFilePath;
+3 -1
View File
@@ -83,7 +83,7 @@ class Media extends PhpObject {
}
}
}
return $bOwnMedia?$this->asMedia:$asMedias;
return $bOwnMedia?$this->asMedia:$asMedias ?? [];
}
public function getInfo() {
@@ -273,6 +273,8 @@ class Media extends PhpObject {
//Resize
$asThumbInfo = ToolBox::createThumbnail($sTempPath, self::THUMB_MAX_WIDTH, 0, $sThumbPath, true);
break;
default:
$asThumbInfo = ['error'=>'error.unknown_type', 'out'=>''];
}
}
+2 -1
View File
@@ -72,7 +72,8 @@
"impossible_value": "Value \"$0\" is not valid for field \"$1\"",
"no_auth": "Not authorized",
"not_found": "Unknown action",
"unknown_field": "Unknown field \"$0\""
"unknown_field": "Unknown field \"$0\"",
"unknown_type": "Unknown type \"$0\""
},
"feed": {
"counter": "#$0",
+2 -1
View File
@@ -72,7 +72,8 @@
"impossible_value": "El valor \"$0\" no es posible para el campo \"$1\"",
"no_auth": "Sin autorización",
"not_found": "Acción desconocida",
"unknown_field": "Campo \"$0\" desconocido"
"unknown_field": "Campo \"$0\" desconocido",
"unknown_type": "Tipo \"$0\" desconocido"
},
"feed": {
"counter": "N.º $0",
+2 -1
View File
@@ -72,7 +72,8 @@
"impossible_value": "La valeur \"$0\" n'est pas possible pour le champ \"$1\"",
"no_auth": "Pas d'autorisation",
"not_found": "Action inconnue",
"unknown_field": "Champ \"$0\" inconnu"
"unknown_field": "Champ \"$0\" inconnu",
"unknown_type": "Type \"$0\" inconnu"
},
"feed": {
"counter": "N°$0",