Automatic push 4.0.9

This commit is contained in:
chevereto
2023-08-27 15:44:45 +00:00
parent 78dcb32baa
commit f4d6bd709f
17 changed files with 2305 additions and 288 deletions

View File

@@ -1,11 +0,0 @@
Chevereto 4.0.8 (2023-05-22)
- 🌎 Updated translations
- 🐞 Fixed bug in account route
- 🐞 Fixed bug in bs-BA language
- 🐞 Fixed bug in contact form
- 🐞 Fixed bug in flood report email
- 🐞 Fixed bug in global search when using "@"
- 🐞 Fixed bug in not working "S" key on listing viewer
- 🐞 Fixed bug with custom query strings
- 🐞 Fixed bug with image orientation handling

9
.package/4.0.9.txt Normal file
View File

@@ -0,0 +1,9 @@
Chevereto 4.0.9 (2023-08-27)
- 🐞 Fixed bug in category listing missing name
- 🐞 Fixed bug in ip ban editing
- 🐞 Fixed bug in user profile NSFW banner display
- 🐞 Fixed bug in json route
- 🐞 Fixed bug in Search class
- 🐞 Fixed bug in Dashboard stats
- 🌎 Updated translations: Chinese Simplified, Chinese Traditional, German, Portuguese (Brazil) and Vietnamese

View File

@@ -1,8 +1,8 @@
<?php
$translation_header = array (
'Project-Id-Version' => 'VERSION',
'POT-Creation-Date' => '2023-05-22 15:49+0000',
'PO-Revision-Date' => '2023-05-22 15:49+0000',
'POT-Creation-Date' => '2023-07-26 22:08+0000',
'PO-Revision-Date' => '2023-07-26 22:08+0000',
'Last-Translator' => 'FULL NAME <EMAIL@ADDRESS>',
'Language-Team' => 'LANGUAGE TEAM <EMAIL@ADDRESS>',
'Language' => 'de',
@@ -16,6 +16,12 @@ $translation_plural = array (
'function' => '($n != 1)',
);
$translation_table = [
"Selection will be assigned to %t." => [
0 => "Die Auswahl wird %t zugewiesen.",
],
"Sets the minimum content count needed to show %t in %s." => [
0 => "Legt die minimale Inhaltsanzahl fest, die erforderlich ist, um %t in %s anzuzeigen.",
],
"You have been forbidden to use this website." => [
0 => "Die Nutzung dieser Seite ist dir nicht gestattet.",
],
@@ -214,6 +220,9 @@ $translation_table = [
"Upload plugin" => [
0 => "Upload-Plugin",
],
"Cookie compliance" => [
0 => "Cookie-Compliance",
],
"Consent screen" => [
0 => "Zustimmungsmitteilung",
],
@@ -226,15 +235,24 @@ $translation_table = [
"IP bans" => [
0 => "IP-Sperren",
],
"Guests %s" => [
0 => "Gäste %s",
],
"Watermarks" => [
0 => "Wasserzeichen",
],
"Documentation" => [
0 => "Dokumentation",
],
"Support" => [
0 => "Unterstützung",
],
"Releases" => [
0 => "Veröffentlichungen",
],
"Community" => [
0 => "Gemeinschaft",
],
"License" => [
0 => "Lizenz",
],
@@ -374,6 +392,15 @@ $translation_table = [
"Footer (image page)" => [
0 => "Fußzeile",
],
"%s page" => [
0 => "%s Seite",
],
"Before header (%s page)" => [
0 => "Vor dem Header (%s Seite)",
],
"After header (%s page)" => [
0 => "Nach dem Header (%s Seite)",
],
"User profile page" => [
0 => "Profilseite",
],
@@ -426,7 +453,7 @@ $translation_table = [
0 => "Ungültiger Wert",
],
"palette" => [
0 => "Farbenpalette",
0 => "Farben",
],
"Invalid %s" => [
0 => "Ungültige %s",
@@ -615,6 +642,9 @@ $translation_table = [
0 => "Bild",
1 => "Bilder",
],
"%s doesn't exists" => [
0 => "%s existiert nicht",
],
"%s edited" => [
0 => "%s bearbeitet",
],
@@ -666,6 +696,9 @@ $translation_table = [
"Downloading %s data" => [
0 => "Lade Daten von %s",
],
"%s cover updated" => [
0 => "%s Cover aktualisiert",
],
"Content liked" => [
0 => "Inhalt gefällt dir",
],
@@ -690,6 +723,9 @@ $translation_table = [
"Upload images" => [
0 => "Bilder hochladen",
],
"%t search results for %s" => [
0 => "%t Suchergebnisse für %s",
],
"Search" => [
0 => "Suche",
],
@@ -830,6 +866,9 @@ $translation_table = [
"Me" => [
0 => "Ich",
],
"CSAM content is forbidden" => [
0 => "CSAM-Inhalte sind verboten",
],
"After %n %t" => [
0 => "Nach %n %t",
],
@@ -953,12 +992,18 @@ $translation_table = [
"System database is outdated." => [
0 => "Die Systemdatenbank ist veraltet.",
],
"You need to %s." => [
0 => "Sie müssen %s.",
],
"Website is in maintenance mode." => [
0 => "Website befindet sich im Wartungsmodus.",
],
"To revert this setting go to %s." => [
0 => "Um diese Einstellung zurückzusetzen, gehe zu %s.",
],
"%s settings" => [
0 => "%s Einstellungen",
],
"You haven't changed the default email settings. Go to %emailSettings% to fix this." => [
0 => "Du hast die Standard-E-Mail-Einstellungen nicht geändert. Gehe zu %emailSettings%, um dies zu beheben.",
],
@@ -989,6 +1034,9 @@ $translation_table = [
"My Profile" => [
0 => "Mein Profil",
],
"Palette" => [
0 => "Farben",
],
"Manager" => [
0 => "Moderator",
],
@@ -1500,9 +1548,15 @@ $translation_table = [
"Unnamed %s" => [
0 => "Unbenannt %s",
],
"Enable call to action buttons" => [
0 => "Aktiviere die Call-to-Action-Schaltflächen",
],
"Call to action buttons will be displayed on the %s page and in content belonging to." => [
0 => "Call-to-Action-Buttons werden auf der Seite %s und in den dazugehörigen Inhalten angezeigt.",
],
"You can use %emoji% or %package% icons." => [
0 => "Du kannst die Symbole %emoji% oder %package% verwenden.",
],
"Buy now" => [
0 => "Jetzt kaufen",
],
@@ -3012,6 +3066,9 @@ $translation_table = [
"Allows to search images, albums and users based on a given search query." => [
0 => "Ermöglicht die Suche nach Bildern, Alben und Benutzern anhand der gegebenen Suchanfrage.",
],
"search" => [
0 => "suchen",
],
"Enables %s for guests." => [
0 => "Aktiviert %s für Gäste.",
],
@@ -3363,6 +3420,9 @@ $translation_table = [
"Do you really want to disable two-factor authentication?" => [
0 => "Möchtest du die Zwei-Faktor-Authentifizierung wirklich deaktivieren?",
],
"Disable" => [
0 => "Deaktivieren",
],
"Scan the QR code below with an authenticator application and enter the code displayed." => [
0 => "Scanne den unten stehenden QR-Code mit einer Authentifizierungsanwendung und gib den angezeigten Code ein.",
],

File diff suppressed because it is too large Load Diff

View File

@@ -1,8 +1,8 @@
<?php
$translation_header = array (
'Project-Id-Version' => 'VERSION',
'POT-Creation-Date' => '2023-05-22 15:49+0000',
'PO-Revision-Date' => '2023-05-22 15:49+0000',
'POT-Creation-Date' => '2023-07-26 22:08+0000',
'PO-Revision-Date' => '2023-07-26 22:08+0000',
'Last-Translator' => 'FULL NAME <EMAIL@ADDRESS>',
'Language-Team' => 'LANGUAGE TEAM <EMAIL@ADDRESS>',
'Language' => 'vi',
@@ -53,7 +53,7 @@ $translation_table = [
0 => "Tôi đồng ý với %terms_link và %privacy_link",
],
"That page doesn't exist" => [
0 => "404: Trng này không tồn tại",
0 => "404: Trang này không tồn tại",
],
"Page %s" => [
0 => "Trang %s",
@@ -175,6 +175,9 @@ $translation_table = [
"Languages" => [
0 => "Ngôn ngữ",
],
"Email" => [
0 => "Email",
],
"Tools" => [
0 => "Công cụ",
],
@@ -199,6 +202,9 @@ $translation_table = [
"Documentation" => [
0 => "Tài liệu",
],
"Admin" => [
0 => "Quản Trị Viên",
],
"Support" => [
0 => "Hỗ trợ",
],
@@ -211,6 +217,12 @@ $translation_table = [
"install update" => [
0 => "cài đặt cập nhật",
],
"Check updates" => [
0 => "Kiểm tra bản cập nhật",
],
"not running" => [
0 => "không chạy",
],
"Max. upload file size" => [
0 => "Tập tin tải lên tối đa",
],

View File

@@ -1,8 +1,8 @@
<?php
$translation_header = array (
'Project-Id-Version' => 'VERSION',
'POT-Creation-Date' => '2023-05-22 15:49+0000',
'PO-Revision-Date' => '2023-05-22 15:49+0000',
'POT-Creation-Date' => '2023-06-26 11:09+0000',
'PO-Revision-Date' => '2023-06-26 11:09+0000',
'Last-Translator' => 'FULL NAME <EMAIL@ADDRESS>',
'Language-Team' => 'LANGUAGE TEAM <EMAIL@ADDRESS>',
'Language' => 'zh_TW',
@@ -16,8 +16,14 @@ $translation_plural = array (
'function' => '0',
);
$translation_table = [
"Selection will be assigned to %t." => [
0 => "選擇將分配給 %t。",
],
"Sets the minimum content count needed to show %t in %s." => [
0 => "設置在 %s 中顯示 %t 所需的最小內容計數。",
],
"You have been forbidden to use this website." => [
0 => "你被禁止進入這個網站",
0 => "你被禁止進入這個網站",
],
"Moderate" => [
0 => "審核",
@@ -241,6 +247,9 @@ $translation_table = [
"IP bans" => [
0 => "封鎖IP",
],
"Guests %s" => [
0 => "來賓 %s",
],
"Watermarks" => [
0 => "浮水印",
],
@@ -2695,6 +2704,9 @@ $translation_table = [
"Both methods use a fixed width but fluid method uses automatic heights." => [
0 => "首頁圖片列表樣式. 這兩種方法都使用固定寬度, 但“自動”的方法是使用自動圖片的高度.",
],
"%t listing requirement" => [
0 => "%t 列表要求",
],
"Listing columns number" => [
0 => "頁面顯示列數",
],
@@ -3343,6 +3355,9 @@ $translation_table = [
"This is the album cover" => [
0 => "這是專輯封面",
],
"Added to %a under %s %t" => [
0 => "添加到 %a 下的 %s %t",
],
"Added to %s" => [
0 => "加入 %s",
],

328
app/composer.lock generated
View File

@@ -951,12 +951,12 @@
"version": "0.7.0",
"source": {
"type": "git",
"url": "https://github.com/chevere/xr-server.git",
"url": "https://github.com/chevere/xrdebug.git",
"reference": "8654a91b3f27956ad5f129942531d40e3bf5a1e0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/chevere/xr-server/zipball/8654a91b3f27956ad5f129942531d40e3bf5a1e0",
"url": "https://api.github.com/repos/chevere/xrdebug/zipball/8654a91b3f27956ad5f129942531d40e3bf5a1e0",
"reference": "8654a91b3f27956ad5f129942531d40e3bf5a1e0",
"shasum": ""
},
@@ -999,9 +999,10 @@
"description": "XR Debug server",
"homepage": "https://xr-debug.chevere.org",
"support": {
"issues": "https://github.com/chevere/xr-server/issues",
"source": "https://github.com/chevere/xr-server/tree/0.7.0"
"issues": "https://github.com/chevere/xrdebug/issues",
"source": "https://github.com/chevere/xrdebug/tree/0.7.0"
},
"abandoned": "chevere/xrdebug",
"time": "2022-12-14T16:58:19+00:00"
},
{
@@ -1148,16 +1149,16 @@
},
{
"name": "composer/ca-bundle",
"version": "1.3.5",
"version": "1.3.6",
"source": {
"type": "git",
"url": "https://github.com/composer/ca-bundle.git",
"reference": "74780ccf8c19d6acb8d65c5f39cd72110e132bbd"
"reference": "90d087e988ff194065333d16bc5cf649872d9cdb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/74780ccf8c19d6acb8d65c5f39cd72110e132bbd",
"reference": "74780ccf8c19d6acb8d65c5f39cd72110e132bbd",
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/90d087e988ff194065333d16bc5cf649872d9cdb",
"reference": "90d087e988ff194065333d16bc5cf649872d9cdb",
"shasum": ""
},
"require": {
@@ -1204,7 +1205,7 @@
"support": {
"irc": "irc://irc.freenode.org/composer",
"issues": "https://github.com/composer/ca-bundle/issues",
"source": "https://github.com/composer/ca-bundle/tree/1.3.5"
"source": "https://github.com/composer/ca-bundle/tree/1.3.6"
},
"funding": [
{
@@ -1220,32 +1221,32 @@
"type": "tidelift"
}
],
"time": "2023-01-11T08:27:00+00:00"
"time": "2023-06-06T12:02:59+00:00"
},
{
"name": "evenement/evenement",
"version": "v3.0.1",
"version": "v3.0.2",
"source": {
"type": "git",
"url": "https://github.com/igorw/evenement.git",
"reference": "531bfb9d15f8aa57454f5f0285b18bec903b8fb7"
"reference": "0a16b0d71ab13284339abb99d9d2bd813640efbc"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/igorw/evenement/zipball/531bfb9d15f8aa57454f5f0285b18bec903b8fb7",
"reference": "531bfb9d15f8aa57454f5f0285b18bec903b8fb7",
"url": "https://api.github.com/repos/igorw/evenement/zipball/0a16b0d71ab13284339abb99d9d2bd813640efbc",
"reference": "0a16b0d71ab13284339abb99d9d2bd813640efbc",
"shasum": ""
},
"require": {
"php": ">=7.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0"
"phpunit/phpunit": "^9 || ^6"
},
"type": "library",
"autoload": {
"psr-0": {
"Evenement": "src"
"psr-4": {
"Evenement\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -1265,9 +1266,9 @@
],
"support": {
"issues": "https://github.com/igorw/evenement/issues",
"source": "https://github.com/igorw/evenement/tree/master"
"source": "https://github.com/igorw/evenement/tree/v3.0.2"
},
"time": "2017-07-23T21:35:13+00:00"
"time": "2023-08-08T05:53:35+00:00"
},
{
"name": "fig/http-message-util",
@@ -1327,16 +1328,16 @@
},
{
"name": "firebase/php-jwt",
"version": "v6.5.0",
"version": "v6.8.1",
"source": {
"type": "git",
"url": "https://github.com/firebase/php-jwt.git",
"reference": "e94e7353302b0c11ec3cfff7180cd0b1743975d2"
"reference": "5dbc8959427416b8ee09a100d7a8588c00fb2e26"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/firebase/php-jwt/zipball/e94e7353302b0c11ec3cfff7180cd0b1743975d2",
"reference": "e94e7353302b0c11ec3cfff7180cd0b1743975d2",
"url": "https://api.github.com/repos/firebase/php-jwt/zipball/5dbc8959427416b8ee09a100d7a8588c00fb2e26",
"reference": "5dbc8959427416b8ee09a100d7a8588c00fb2e26",
"shasum": ""
},
"require": {
@@ -1384,9 +1385,9 @@
],
"support": {
"issues": "https://github.com/firebase/php-jwt/issues",
"source": "https://github.com/firebase/php-jwt/tree/v6.5.0"
"source": "https://github.com/firebase/php-jwt/tree/v6.8.1"
},
"time": "2023-05-12T15:47:07+00:00"
"time": "2023-07-14T18:33:00+00:00"
},
{
"name": "guzzlehttp/psr7",
@@ -2533,16 +2534,16 @@
},
{
"name": "phpseclib/phpseclib",
"version": "3.0.19",
"version": "3.0.21",
"source": {
"type": "git",
"url": "https://github.com/phpseclib/phpseclib.git",
"reference": "cc181005cf548bfd8a4896383bb825d859259f95"
"reference": "4580645d3fc05c189024eb3b834c6c1e4f0f30a1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/cc181005cf548bfd8a4896383bb825d859259f95",
"reference": "cc181005cf548bfd8a4896383bb825d859259f95",
"url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/4580645d3fc05c189024eb3b834c6c1e4f0f30a1",
"reference": "4580645d3fc05c189024eb3b834c6c1e4f0f30a1",
"shasum": ""
},
"require": {
@@ -2623,7 +2624,7 @@
],
"support": {
"issues": "https://github.com/phpseclib/phpseclib/issues",
"source": "https://github.com/phpseclib/phpseclib/tree/3.0.19"
"source": "https://github.com/phpseclib/phpseclib/tree/3.0.21"
},
"funding": [
{
@@ -2639,7 +2640,7 @@
"type": "tidelift"
}
],
"time": "2023-03-05T17:13:09+00:00"
"time": "2023-07-09T15:24:48+00:00"
},
{
"name": "pragmarx/google2fa",
@@ -3433,33 +3434,33 @@
},
{
"name": "react/dns",
"version": "v1.10.0",
"version": "v1.11.0",
"source": {
"type": "git",
"url": "https://github.com/reactphp/dns.git",
"reference": "a5427e7dfa47713e438016905605819d101f238c"
"reference": "3be0fc8f1eb37d6875cd6f0c6c7d0be81435de9f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/reactphp/dns/zipball/a5427e7dfa47713e438016905605819d101f238c",
"reference": "a5427e7dfa47713e438016905605819d101f238c",
"url": "https://api.github.com/repos/reactphp/dns/zipball/3be0fc8f1eb37d6875cd6f0c6c7d0be81435de9f",
"reference": "3be0fc8f1eb37d6875cd6f0c6c7d0be81435de9f",
"shasum": ""
},
"require": {
"php": ">=5.3.0",
"react/cache": "^1.0 || ^0.6 || ^0.5",
"react/event-loop": "^1.2",
"react/promise": "^3.0 || ^2.7 || ^1.2.1",
"react/promise-timer": "^1.9"
"react/promise": "^3.0 || ^2.7 || ^1.2.1"
},
"require-dev": {
"phpunit/phpunit": "^9.3 || ^4.8.35",
"react/async": "^4 || ^3 || ^2"
"phpunit/phpunit": "^9.5 || ^4.8.35",
"react/async": "^4 || ^3 || ^2",
"react/promise-timer": "^1.9"
},
"type": "library",
"autoload": {
"psr-4": {
"React\\Dns\\": "src"
"React\\Dns\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -3497,19 +3498,15 @@
],
"support": {
"issues": "https://github.com/reactphp/dns/issues",
"source": "https://github.com/reactphp/dns/tree/v1.10.0"
"source": "https://github.com/reactphp/dns/tree/v1.11.0"
},
"funding": [
{
"url": "https://github.com/WyriHaximus",
"type": "github"
},
{
"url": "https://github.com/clue",
"type": "github"
"url": "https://opencollective.com/reactphp",
"type": "open_collective"
}
],
"time": "2022-09-08T12:22:46+00:00"
"time": "2023-06-02T12:45:26+00:00"
},
{
"name": "react/event-loop",
@@ -3677,23 +3674,24 @@
},
{
"name": "react/promise",
"version": "v2.10.0",
"version": "v3.0.0",
"source": {
"type": "git",
"url": "https://github.com/reactphp/promise.git",
"reference": "f913fb8cceba1e6644b7b90c4bfb678ed8a3ef38"
"reference": "c86753c76fd3be465d93b308f18d189f01a22be4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/reactphp/promise/zipball/f913fb8cceba1e6644b7b90c4bfb678ed8a3ef38",
"reference": "f913fb8cceba1e6644b7b90c4bfb678ed8a3ef38",
"url": "https://api.github.com/repos/reactphp/promise/zipball/c86753c76fd3be465d93b308f18d189f01a22be4",
"reference": "c86753c76fd3be465d93b308f18d189f01a22be4",
"shasum": ""
},
"require": {
"php": ">=5.4.0"
"php": ">=7.1.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.36"
"phpstan/phpstan": "1.10.20 || 1.4.10",
"phpunit/phpunit": "^9.5 || ^7.5"
},
"type": "library",
"autoload": {
@@ -3737,7 +3735,7 @@
],
"support": {
"issues": "https://github.com/reactphp/promise/issues",
"source": "https://github.com/reactphp/promise/tree/v2.10.0"
"source": "https://github.com/reactphp/promise/tree/v3.0.0"
},
"funding": [
{
@@ -3745,118 +3743,35 @@
"type": "open_collective"
}
],
"time": "2023-05-02T15:15:43+00:00"
},
{
"name": "react/promise-timer",
"version": "v1.9.0",
"source": {
"type": "git",
"url": "https://github.com/reactphp/promise-timer.git",
"reference": "aa7a73c74b8d8c0f622f5982ff7b0351bc29e495"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/reactphp/promise-timer/zipball/aa7a73c74b8d8c0f622f5982ff7b0351bc29e495",
"reference": "aa7a73c74b8d8c0f622f5982ff7b0351bc29e495",
"shasum": ""
},
"require": {
"php": ">=5.3",
"react/event-loop": "^1.2",
"react/promise": "^3.0 || ^2.7.0 || ^1.2.1"
},
"require-dev": {
"phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35"
},
"type": "library",
"autoload": {
"files": [
"src/functions_include.php"
],
"psr-4": {
"React\\Promise\\Timer\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Christian Lück",
"email": "christian@clue.engineering",
"homepage": "https://clue.engineering/"
},
{
"name": "Cees-Jan Kiewiet",
"email": "reactphp@ceesjankiewiet.nl",
"homepage": "https://wyrihaximus.net/"
},
{
"name": "Jan Sorgalla",
"email": "jsorgalla@gmail.com",
"homepage": "https://sorgalla.com/"
},
{
"name": "Chris Boden",
"email": "cboden@gmail.com",
"homepage": "https://cboden.dev/"
}
],
"description": "A trivial implementation of timeouts for Promises, built on top of ReactPHP.",
"homepage": "https://github.com/reactphp/promise-timer",
"keywords": [
"async",
"event-loop",
"promise",
"reactphp",
"timeout",
"timer"
],
"support": {
"issues": "https://github.com/reactphp/promise-timer/issues",
"source": "https://github.com/reactphp/promise-timer/tree/v1.9.0"
},
"funding": [
{
"url": "https://github.com/WyriHaximus",
"type": "github"
},
{
"url": "https://github.com/clue",
"type": "github"
}
],
"time": "2022-06-13T13:41:03+00:00"
"time": "2023-07-11T16:12:49+00:00"
},
{
"name": "react/socket",
"version": "v1.12.0",
"version": "v1.14.0",
"source": {
"type": "git",
"url": "https://github.com/reactphp/socket.git",
"reference": "81e1b4d7f5450ebd8d2e9a95bb008bb15ca95a7b"
"reference": "21591111d3ea62e31f2254280ca0656bc2b1bda6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/reactphp/socket/zipball/81e1b4d7f5450ebd8d2e9a95bb008bb15ca95a7b",
"reference": "81e1b4d7f5450ebd8d2e9a95bb008bb15ca95a7b",
"url": "https://api.github.com/repos/reactphp/socket/zipball/21591111d3ea62e31f2254280ca0656bc2b1bda6",
"reference": "21591111d3ea62e31f2254280ca0656bc2b1bda6",
"shasum": ""
},
"require": {
"evenement/evenement": "^3.0 || ^2.0 || ^1.0",
"php": ">=5.3.0",
"react/dns": "^1.8",
"react/dns": "^1.11",
"react/event-loop": "^1.2",
"react/promise": "^3 || ^2.6 || ^1.2.1",
"react/promise-timer": "^1.9",
"react/stream": "^1.2"
},
"require-dev": {
"phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35",
"phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.35",
"react/async": "^4 || ^3 || ^2",
"react/promise-stream": "^1.4"
"react/promise-stream": "^1.4",
"react/promise-timer": "^1.10"
},
"type": "library",
"autoload": {
@@ -3900,32 +3815,28 @@
],
"support": {
"issues": "https://github.com/reactphp/socket/issues",
"source": "https://github.com/reactphp/socket/tree/v1.12.0"
"source": "https://github.com/reactphp/socket/tree/v1.14.0"
},
"funding": [
{
"url": "https://github.com/WyriHaximus",
"type": "github"
},
{
"url": "https://github.com/clue",
"type": "github"
"url": "https://opencollective.com/reactphp",
"type": "open_collective"
}
],
"time": "2022-08-25T12:32:25+00:00"
"time": "2023-08-25T13:48:09+00:00"
},
{
"name": "react/stream",
"version": "v1.2.0",
"version": "v1.3.0",
"source": {
"type": "git",
"url": "https://github.com/reactphp/stream.git",
"reference": "7a423506ee1903e89f1e08ec5f0ed430ff784ae9"
"reference": "6fbc9672905c7d5a885f2da2fc696f65840f4a66"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/reactphp/stream/zipball/7a423506ee1903e89f1e08ec5f0ed430ff784ae9",
"reference": "7a423506ee1903e89f1e08ec5f0ed430ff784ae9",
"url": "https://api.github.com/repos/reactphp/stream/zipball/6fbc9672905c7d5a885f2da2fc696f65840f4a66",
"reference": "6fbc9672905c7d5a885f2da2fc696f65840f4a66",
"shasum": ""
},
"require": {
@@ -3935,12 +3846,12 @@
},
"require-dev": {
"clue/stream-filter": "~1.2",
"phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35"
"phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.35"
},
"type": "library",
"autoload": {
"psr-4": {
"React\\Stream\\": "src"
"React\\Stream\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -3982,19 +3893,15 @@
],
"support": {
"issues": "https://github.com/reactphp/stream/issues",
"source": "https://github.com/reactphp/stream/tree/v1.2.0"
"source": "https://github.com/reactphp/stream/tree/v1.3.0"
},
"funding": [
{
"url": "https://github.com/WyriHaximus",
"type": "github"
},
{
"url": "https://github.com/clue",
"type": "github"
"url": "https://opencollective.com/reactphp",
"type": "open_collective"
}
],
"time": "2021-07-11T12:37:55+00:00"
"time": "2023-06-16T10:52:11+00:00"
},
{
"name": "ringcentral/psr7",
@@ -4231,16 +4138,16 @@
},
{
"name": "symfony/cache",
"version": "v5.4.23",
"version": "v5.4.28",
"source": {
"type": "git",
"url": "https://github.com/symfony/cache.git",
"reference": "983c79ff28612cdfd66d8e44e1a06e5afc87e107"
"reference": "62b7ae3bccc5b474a30fadc7ef6bbc362007d3f9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/cache/zipball/983c79ff28612cdfd66d8e44e1a06e5afc87e107",
"reference": "983c79ff28612cdfd66d8e44e1a06e5afc87e107",
"url": "https://api.github.com/repos/symfony/cache/zipball/62b7ae3bccc5b474a30fadc7ef6bbc362007d3f9",
"reference": "62b7ae3bccc5b474a30fadc7ef6bbc362007d3f9",
"shasum": ""
},
"require": {
@@ -4308,7 +4215,7 @@
"psr6"
],
"support": {
"source": "https://github.com/symfony/cache/tree/v5.4.23"
"source": "https://github.com/symfony/cache/tree/v5.4.28"
},
"funding": [
{
@@ -4324,7 +4231,7 @@
"type": "tidelift"
}
],
"time": "2023-04-21T15:38:51+00:00"
"time": "2023-08-05T08:32:42+00:00"
},
{
"name": "symfony/cache-contracts",
@@ -5306,16 +5213,16 @@
},
{
"name": "nikic/php-parser",
"version": "v4.15.5",
"version": "v4.17.1",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
"reference": "11e2663a5bc9db5d714eedb4277ee300403b4a9e"
"reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/11e2663a5bc9db5d714eedb4277ee300403b4a9e",
"reference": "11e2663a5bc9db5d714eedb4277ee300403b4a9e",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d",
"reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d",
"shasum": ""
},
"require": {
@@ -5356,9 +5263,9 @@
],
"support": {
"issues": "https://github.com/nikic/PHP-Parser/issues",
"source": "https://github.com/nikic/PHP-Parser/tree/v4.15.5"
"source": "https://github.com/nikic/PHP-Parser/tree/v4.17.1"
},
"time": "2023-05-19T20:20:00+00:00"
"time": "2023-08-13T19:53:39+00:00"
},
{
"name": "phar-io/manifest",
@@ -5473,16 +5380,16 @@
},
{
"name": "phpstan/phpstan",
"version": "1.10.15",
"version": "1.10.32",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
"reference": "762c4dac4da6f8756eebb80e528c3a47855da9bd"
"reference": "c47e47d3ab03137c0e121e77c4d2cb58672f6d44"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/762c4dac4da6f8756eebb80e528c3a47855da9bd",
"reference": "762c4dac4da6f8756eebb80e528c3a47855da9bd",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/c47e47d3ab03137c0e121e77c4d2cb58672f6d44",
"reference": "c47e47d3ab03137c0e121e77c4d2cb58672f6d44",
"shasum": ""
},
"require": {
@@ -5531,20 +5438,20 @@
"type": "tidelift"
}
],
"time": "2023-05-09T15:28:01+00:00"
"time": "2023-08-24T21:54:50+00:00"
},
{
"name": "phpunit/php-code-coverage",
"version": "9.2.26",
"version": "9.2.27",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
"reference": "443bc6912c9bd5b409254a40f4b0f4ced7c80ea1"
"reference": "b0a88255cb70d52653d80c890bd7f38740ea50d1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/443bc6912c9bd5b409254a40f4b0f4ced7c80ea1",
"reference": "443bc6912c9bd5b409254a40f4b0f4ced7c80ea1",
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/b0a88255cb70d52653d80c890bd7f38740ea50d1",
"reference": "b0a88255cb70d52653d80c890bd7f38740ea50d1",
"shasum": ""
},
"require": {
@@ -5600,7 +5507,8 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.26"
"security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy",
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.27"
},
"funding": [
{
@@ -5608,7 +5516,7 @@
"type": "github"
}
],
"time": "2023-03-06T12:58:08+00:00"
"time": "2023-07-26T13:44:30+00:00"
},
{
"name": "phpunit/php-file-iterator",
@@ -5853,16 +5761,16 @@
},
{
"name": "phpunit/phpunit",
"version": "9.6.8",
"version": "9.6.11",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "17d621b3aff84d0c8b62539e269e87d8d5baa76e"
"reference": "810500e92855eba8a7a5319ae913be2da6f957b0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/17d621b3aff84d0c8b62539e269e87d8d5baa76e",
"reference": "17d621b3aff84d0c8b62539e269e87d8d5baa76e",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/810500e92855eba8a7a5319ae913be2da6f957b0",
"reference": "810500e92855eba8a7a5319ae913be2da6f957b0",
"shasum": ""
},
"require": {
@@ -5936,7 +5844,7 @@
"support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.8"
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.11"
},
"funding": [
{
@@ -5952,20 +5860,20 @@
"type": "tidelift"
}
],
"time": "2023-05-11T05:14:45+00:00"
"time": "2023-08-19T07:10:56+00:00"
},
{
"name": "psy/psysh",
"version": "v0.11.17",
"version": "v0.11.20",
"source": {
"type": "git",
"url": "https://github.com/bobthecow/psysh.git",
"reference": "3dc5d4018dabd80bceb8fe1e3191ba8460569f0a"
"reference": "0fa27040553d1d280a67a4393194df5228afea5b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/bobthecow/psysh/zipball/3dc5d4018dabd80bceb8fe1e3191ba8460569f0a",
"reference": "3dc5d4018dabd80bceb8fe1e3191ba8460569f0a",
"url": "https://api.github.com/repos/bobthecow/psysh/zipball/0fa27040553d1d280a67a4393194df5228afea5b",
"reference": "0fa27040553d1d280a67a4393194df5228afea5b",
"shasum": ""
},
"require": {
@@ -6026,9 +5934,9 @@
],
"support": {
"issues": "https://github.com/bobthecow/psysh/issues",
"source": "https://github.com/bobthecow/psysh/tree/v0.11.17"
"source": "https://github.com/bobthecow/psysh/tree/v0.11.20"
},
"time": "2023-05-05T20:02:42+00:00"
"time": "2023-07-31T14:32:22+00:00"
},
{
"name": "rector/rector",
@@ -6596,16 +6504,16 @@
},
{
"name": "sebastian/global-state",
"version": "5.0.5",
"version": "5.0.6",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/global-state.git",
"reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2"
"reference": "bde739e7565280bda77be70044ac1047bc007e34"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/0ca8db5a5fc9c8646244e629625ac486fa286bf2",
"reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2",
"url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bde739e7565280bda77be70044ac1047bc007e34",
"reference": "bde739e7565280bda77be70044ac1047bc007e34",
"shasum": ""
},
"require": {
@@ -6648,7 +6556,7 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/global-state/issues",
"source": "https://github.com/sebastianbergmann/global-state/tree/5.0.5"
"source": "https://github.com/sebastianbergmann/global-state/tree/5.0.6"
},
"funding": [
{
@@ -6656,7 +6564,7 @@
"type": "github"
}
],
"time": "2022-02-14T08:28:10+00:00"
"time": "2023-08-02T09:26:13+00:00"
},
{
"name": "sebastian/lines-of-code",

View File

@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: VERSION\n"
"POT-Creation-Date: 2023-05-22 15:49+0000\n"
"PO-Revision-Date: 2023-05-22 15:49+0000\n"
"POT-Creation-Date: 2023-07-26 22:08+0000\n"
"PO-Revision-Date: 2023-07-26 22:08+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE TEAM <EMAIL@ADDRESS>\n"
"Language: de\n"
@@ -11,6 +11,12 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Selection will be assigned to %t."
msgstr "Die Auswahl wird %t zugewiesen."
msgid "Sets the minimum content count needed to show %t in %s."
msgstr "Legt die minimale Inhaltsanzahl fest, die erforderlich ist, um %t in %s anzuzeigen."
msgid "You have been forbidden to use this website."
msgstr "Die Nutzung dieser Seite ist dir nicht gestattet."
@@ -218,6 +224,9 @@ msgstr "Anmeldeanbieter"
msgid "Upload plugin"
msgstr "Upload-Plugin"
msgid "Cookie compliance"
msgstr "Cookie-Compliance"
msgid "Consent screen"
msgstr "Zustimmungsmitteilung"
@@ -230,15 +239,25 @@ msgstr "Werbung"
msgid "IP bans"
msgstr "IP-Sperren"
#, php-format
msgid "Guests %s"
msgstr "Gäste %s"
msgid "Watermarks"
msgstr "Wasserzeichen"
msgid "Documentation"
msgstr "Dokumentation"
msgid "Support"
msgstr "Unterstützung"
msgid "Releases"
msgstr "Veröffentlichungen"
msgid "Community"
msgstr "Gemeinschaft"
msgid "License"
msgstr "Lizenz"
@@ -385,6 +404,18 @@ msgstr "Nach Kopfzeile"
msgid "Footer (image page)"
msgstr "Fußzeile"
#, php-format
msgid "%s page"
msgstr "%s Seite"
#, php-format
msgid "Before header (%s page)"
msgstr "Vor dem Header (%s Seite)"
#, php-format
msgid "After header (%s page)"
msgstr "Nach dem Header (%s Seite)"
msgid "User profile page"
msgstr "Profilseite"
@@ -438,7 +469,7 @@ msgid "Invalid value"
msgstr "Ungültiger Wert"
msgid "palette"
msgstr "Farbenpalette"
msgstr "Farben"
#, php-format
msgid "Invalid %s"
@@ -633,6 +664,10 @@ msgid_plural "Images"
msgstr[0] "Bild"
msgstr[1] "Bilder"
#, php-format
msgid "%s doesn't exists"
msgstr "%s existiert nicht"
#, php-format
msgid "%s edited"
msgstr "%s bearbeitet"
@@ -693,6 +728,10 @@ msgstr "Test-E-Mail wurde an %s gesendet."
msgid "Downloading %s data"
msgstr "Lade Daten von %s"
#, php-format
msgid "%s cover updated"
msgstr "%s Cover aktualisiert"
msgid "Content liked"
msgstr "Inhalt gefällt dir"
@@ -718,6 +757,9 @@ msgstr "Anmelden"
msgid "Upload images"
msgstr "Bilder hochladen"
msgid "%t search results for %s"
msgstr "%t Suchergebnisse für %s"
msgid "Search"
msgstr "Suche"
@@ -867,6 +909,9 @@ msgstr "Öffentlich (Alle)"
msgid "Me"
msgstr "Ich"
msgid "CSAM content is forbidden"
msgstr "CSAM-Inhalte sind verboten"
msgid "After %n %t"
msgstr "Nach %n %t"
@@ -1007,6 +1052,10 @@ msgstr "Gehen zu %s, um dieses Update herunterzuladen und zu installieren."
msgid "System database is outdated."
msgstr "Die Systemdatenbank ist veraltet."
#, php-format
msgid "You need to %s."
msgstr "Sie müssen %s."
msgid "Website is in maintenance mode."
msgstr "Website befindet sich im Wartungsmodus."
@@ -1014,6 +1063,10 @@ msgstr "Website befindet sich im Wartungsmodus."
msgid "To revert this setting go to %s."
msgstr "Um diese Einstellung zurückzusetzen, gehe zu %s."
#, php-format
msgid "%s settings"
msgstr "%s Einstellungen"
msgid "You haven't changed the default email settings. Go to %emailSettings% to fix this."
msgstr "Du hast die Standard-E-Mail-Einstellungen nicht geändert. Gehe zu %emailSettings%, um dies zu beheben."
@@ -1045,6 +1098,9 @@ msgstr "Du hast keine neuen Benachrichtigungen"
msgid "My Profile"
msgstr "Mein Profil"
msgid "Palette"
msgstr "Farben"
msgid "Manager"
msgstr "Moderator"
@@ -1585,10 +1641,16 @@ msgstr "IP-Adresse"
msgid "Unnamed %s"
msgstr "Unbenannt %s"
msgid "Enable call to action buttons"
msgstr "Aktiviere die Call-to-Action-Schaltflächen"
#, php-format
msgid "Call to action buttons will be displayed on the %s page and in content belonging to."
msgstr "Call-to-Action-Buttons werden auf der Seite %s und in den dazugehörigen Inhalten angezeigt."
msgid "You can use %emoji% or %package% icons."
msgstr "Du kannst die Symbole %emoji% oder %package% verwenden."
msgid "Buy now"
msgstr "Jetzt kaufen"
@@ -3154,6 +3216,9 @@ msgstr "Region wählen"
msgid "Allows to search images, albums and users based on a given search query."
msgstr "Ermöglicht die Suche nach Bildern, Alben und Benutzern anhand der gegebenen Suchanfrage."
msgid "search"
msgstr "suchen"
#, php-format
msgid "Enables %s for guests."
msgstr "Aktiviert %s für Gäste."
@@ -3527,6 +3592,9 @@ msgstr "Zwei-Faktoren-Authentifizierung ist aktiviert."
msgid "Do you really want to disable two-factor authentication?"
msgstr "Möchtest du die Zwei-Faktor-Authentifizierung wirklich deaktivieren?"
msgid "Disable"
msgstr "Deaktivieren"
msgid "Scan the QR code below with an authenticator application and enter the code displayed."
msgstr "Scanne den unten stehenden QR-Code mit einer Authentifizierungsanwendung und gib den angezeigten Code ein."

File diff suppressed because it is too large Load Diff

View File

@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: VERSION\n"
"POT-Creation-Date: 2023-05-22 15:49+0000\n"
"PO-Revision-Date: 2023-05-22 15:49+0000\n"
"POT-Creation-Date: 2023-07-26 22:08+0000\n"
"PO-Revision-Date: 2023-07-26 22:08+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE TEAM <EMAIL@ADDRESS>\n"
"Language: vi\n"
@@ -48,7 +48,7 @@ msgid "I agree to the %terms_link and %privacy_link"
msgstr "Tôi đồng ý với %terms_link và %privacy_link"
msgid "That page doesn't exist"
msgstr "404: Trng này không tồn tại"
msgstr "404: Trang này không tồn tại"
#, php-format
msgid "Page %s"
@@ -178,6 +178,9 @@ msgstr "Hệ thống"
msgid "Languages"
msgstr "Ngôn ngữ"
msgid "Email"
msgstr "Email"
msgid "Tools"
msgstr "Công cụ"
@@ -202,6 +205,9 @@ msgstr "Chặn IP"
msgid "Documentation"
msgstr "Tài liệu"
msgid "Admin"
msgstr "Quản Trị Viên"
msgid "Support"
msgstr "Hỗ trợ"
@@ -214,6 +220,12 @@ msgstr "Cộng đồng"
msgid "install update"
msgstr "cài đặt cập nhật"
msgid "Check updates"
msgstr "Kiểm tra bản cập nhật"
msgid "not running"
msgstr "không chạy"
msgid "Max. upload file size"
msgstr "Tập tin tải lên tối đa"

View File

@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: VERSION\n"
"POT-Creation-Date: 2023-05-22 15:49+0000\n"
"PO-Revision-Date: 2023-05-22 15:49+0000\n"
"POT-Creation-Date: 2023-06-26 11:09+0000\n"
"PO-Revision-Date: 2023-06-26 11:09+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE TEAM <EMAIL@ADDRESS>\n"
"Language: zh_TW\n"
@@ -11,8 +11,14 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
msgid "Selection will be assigned to %t."
msgstr "選擇將分配給 %t。"
msgid "Sets the minimum content count needed to show %t in %s."
msgstr "設置在 %s 中顯示 %t 所需的最小內容計數。"
msgid "You have been forbidden to use this website."
msgstr "你被禁止進入這個網站"
msgstr "你被禁止進入這個網站"
msgid "Moderate"
msgstr "審核"
@@ -245,6 +251,10 @@ msgstr "廣告"
msgid "IP bans"
msgstr "封鎖IP"
#, php-format
msgid "Guests %s"
msgstr "來賓 %s"
msgid "Watermarks"
msgstr "浮水印"
@@ -2837,6 +2847,9 @@ msgstr "固定"
msgid "Both methods use a fixed width but fluid method uses automatic heights."
msgstr "首頁圖片列表樣式. 這兩種方法都使用固定寬度, 但“自動”的方法是使用自動圖片的高度."
msgid "%t listing requirement"
msgstr "%t 列表要求"
msgid "Listing columns number"
msgstr "頁面顯示列數"
@@ -3516,6 +3529,9 @@ msgstr "封面"
msgid "This is the album cover"
msgstr "這是專輯封面"
msgid "Added to %a under %s %t"
msgstr "添加到 %a 下的 %s %t"
#, php-format
msgid "Added to %s"
msgstr "加入 %s"

View File

@@ -555,7 +555,7 @@ return function (Handler $handler) {
throw new Exception("Edited album doesn't exists", 100);
}
$json_array['status_code'] = 200;
$json_array['success'] = ['message' => _s('%s edited', _('Content')), 'code' => 200];
$json_array['success'] = ['message' => _s('%s edited', _s('Content')), 'code' => 200];
$json_array['album'] = $album_edited;
if (isset($album_move)) {
$json_array['old_album'] = Album::formatArray(
@@ -620,10 +620,6 @@ return function (Handler $handler) {
}
try {
$ipAlreadyBanned = IpBan::getSingle(['ip' => $editing['ip']]);
if (($ipAlreadyBanned['id'] ?? 0) !== $id) {
throw new Exception(_s('IP address already banned'), 103);
}
if (empty($editing['expires'])) {
$editing['expires'] = null;
}

View File

@@ -575,7 +575,7 @@ class Listing
}
}
if ($this->type === 'albums') {
$this->nsfw = true;
$this->nsfw = false;
}
$this->sfw = !$this->nsfw;
Handler::setCond('show_viewer_zero', isset(request()['viewer']) && $this->count > 0);

View File

@@ -0,0 +1,43 @@
<?php
/*
* This file is part of Chevereto.
*
* (c) Rodolfo Berrios <rodolfo@chevereto.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Chevereto\Legacy\Classes;
class Notification
{
public static array $content_types = ['image', 'album', 'like', 'follow'];
public static function get(array $args = []): array
{
return [];
}
public static function insert(array $args = []): void
{
}
public static function delete(array $args = []): void
{
}
public static function markAsRead(array $args = []): void
{
}
protected static function fill(array &$row): void
{
}
protected static function hasContent(array $row): bool
{
return false;
}
}

View File

@@ -179,7 +179,7 @@ class Search
break;
}
$this->wheres = $wheres;
$this->wheres = $wheres ?? '';
$this->display = [
'type' => $this->type,
'q' => $this->q,

View File

@@ -1327,7 +1327,7 @@ function get_bytes(string $size, ?int $cut = null): int
return $number * pow(strlen($suffix) == 2 ? 1000 : 1024, $pow_factor);
}
function bytes_to_mb(int $bytes): float
function bytes_to_mb(int|float $bytes): float
{
return round($bytes / pow(10, 6));
}

View File

@@ -16,7 +16,7 @@ if (Handler::var('category') !== null && isset(Handler::var('category')['name'])
?>
<div class="content-width">
<div class="header margin-top-20 margin-bottom-10">
<h1 class="header-title" rel="tooltip" data-tipTip="right" title="ID:<?php echo Handler::var('category')['id']; ?>"><i class="fas fa-columns color-accent"></i> <strong><?php strtr('%s %c', [
<h1 class="header-title" rel="tooltip" data-tipTip="right" title="ID:<?php echo Handler::var('category')['id']; ?>"><i class="fas fa-columns color-accent"></i> <strong><?php echo strtr('%s %c', [
'%s' => '<em><b>' . Handler::var('category')['name'] . '</b></em>',
'%c' => _s('category')
]); ?></strong></h1>