Fix geo constant scope
This commit is contained in:
+2
-2
@@ -7,8 +7,8 @@ use \Settings;
|
|||||||
abstract class Geo extends PhpObject {
|
abstract class Geo extends PhpObject {
|
||||||
protected const EXT = '';
|
protected const EXT = '';
|
||||||
|
|
||||||
private const GEO_FOLDER = 'geo';
|
protected const GEO_FOLDER = 'geo';
|
||||||
private const OPT_SIMPLE = 'simplification';
|
protected const OPT_SIMPLE = 'simplification';
|
||||||
|
|
||||||
protected array $asTracks;
|
protected array $asTracks;
|
||||||
protected string $sFilePath;
|
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() {
|
public function getInfo() {
|
||||||
@@ -273,6 +273,8 @@ class Media extends PhpObject {
|
|||||||
//Resize
|
//Resize
|
||||||
$asThumbInfo = ToolBox::createThumbnail($sTempPath, self::THUMB_MAX_WIDTH, 0, $sThumbPath, true);
|
$asThumbInfo = ToolBox::createThumbnail($sTempPath, self::THUMB_MAX_WIDTH, 0, $sThumbPath, true);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
$asThumbInfo = ['error'=>'error.unknown_type', 'out'=>''];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,7 +72,8 @@
|
|||||||
"impossible_value": "Value \"$0\" is not valid for field \"$1\"",
|
"impossible_value": "Value \"$0\" is not valid for field \"$1\"",
|
||||||
"no_auth": "Not authorized",
|
"no_auth": "Not authorized",
|
||||||
"not_found": "Unknown action",
|
"not_found": "Unknown action",
|
||||||
"unknown_field": "Unknown field \"$0\""
|
"unknown_field": "Unknown field \"$0\"",
|
||||||
|
"unknown_type": "Unknown type \"$0\""
|
||||||
},
|
},
|
||||||
"feed": {
|
"feed": {
|
||||||
"counter": "#$0",
|
"counter": "#$0",
|
||||||
|
|||||||
@@ -72,7 +72,8 @@
|
|||||||
"impossible_value": "El valor \"$0\" no es posible para el campo \"$1\"",
|
"impossible_value": "El valor \"$0\" no es posible para el campo \"$1\"",
|
||||||
"no_auth": "Sin autorización",
|
"no_auth": "Sin autorización",
|
||||||
"not_found": "Acción desconocida",
|
"not_found": "Acción desconocida",
|
||||||
"unknown_field": "Campo \"$0\" desconocido"
|
"unknown_field": "Campo \"$0\" desconocido",
|
||||||
|
"unknown_type": "Tipo \"$0\" desconocido"
|
||||||
},
|
},
|
||||||
"feed": {
|
"feed": {
|
||||||
"counter": "N.º $0",
|
"counter": "N.º $0",
|
||||||
|
|||||||
@@ -72,7 +72,8 @@
|
|||||||
"impossible_value": "La valeur \"$0\" n'est pas possible pour le champ \"$1\"",
|
"impossible_value": "La valeur \"$0\" n'est pas possible pour le champ \"$1\"",
|
||||||
"no_auth": "Pas d'autorisation",
|
"no_auth": "Pas d'autorisation",
|
||||||
"not_found": "Action inconnue",
|
"not_found": "Action inconnue",
|
||||||
"unknown_field": "Champ \"$0\" inconnu"
|
"unknown_field": "Champ \"$0\" inconnu",
|
||||||
|
"unknown_type": "Type \"$0\" inconnu"
|
||||||
},
|
},
|
||||||
"feed": {
|
"feed": {
|
||||||
"counter": "N°$0",
|
"counter": "N°$0",
|
||||||
|
|||||||
Reference in New Issue
Block a user