Fix geo constant scope
This commit is contained in:
+2
-2
@@ -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
@@ -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'=>''];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user