Compare commits
3 Commits
upgrade-to
...
upgrade-to
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e7d93b9797 | ||
|
|
d0e435d1ef | ||
|
|
6702116da4 |
@@ -20,39 +20,39 @@
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"typo3/cms-core": "^12.4",
|
||||
"typo3/cms-extbase": "^12.4",
|
||||
"typo3/cms-fluid": "^12.4",
|
||||
"typo3/cms-frontend": "^12.4",
|
||||
"typo3/cms-install": "^12.4",
|
||||
"typo3/cms-rte-ckeditor": "^12.4",
|
||||
"typo3/cms-setup": "^12.4",
|
||||
"typo3/cms-core": "^13.4",
|
||||
"typo3/cms-extbase": "^13.4",
|
||||
"typo3/cms-fluid": "^13.4",
|
||||
"typo3/cms-frontend": "^13.4",
|
||||
"typo3/cms-install": "^13.4",
|
||||
"typo3/cms-rte-ckeditor": "^13.4",
|
||||
"typo3/cms-setup": "^13.4",
|
||||
"t3brightside/youtubevideo": "^3.1",
|
||||
"sjbr/static-info-tables": "^12.4",
|
||||
"sjbr/sr-freecap": "^12.0",
|
||||
"sjbr/static-info-tables": "^13.4",
|
||||
"sjbr/sr-freecap": "^13.4",
|
||||
"t3brightside/paginatedprocessors": "^1.7",
|
||||
"georgringer/numbered-pagination": "^1.0",
|
||||
"georgringer/news": "^11.4",
|
||||
"sgalinski/lfeditor": "^8.0",
|
||||
"georgringer/numbered-pagination": "^2.1",
|
||||
"georgringer/news": "^12.3",
|
||||
"sgalinski/lfeditor": "^10.0",
|
||||
"dirkpersky/typo3-dp_cookieconsent": "^13.0",
|
||||
"friendsoftypo3/tt-address": "^9.0",
|
||||
"sjbr/sr-feuser-register": "^12.5",
|
||||
"sjbr/sr-feuser-register": "^13.4",
|
||||
"bobosch/ods-osm": "^4.3",
|
||||
"minifranske/fs-media-gallery": "^4.0",
|
||||
"minifranske/fs-media-gallery": "^5.x-dev",
|
||||
"t3brightside/embedassets": "^1.4",
|
||||
"typo3/cms-filelist": "^12.4",
|
||||
"typo3/cms-fluid-styled-content": "^12.4",
|
||||
"typo3/cms-backend": "^12.4",
|
||||
"typo3/cms-viewpage": "^12.4",
|
||||
"typo3/cms-form": "^12.4",
|
||||
"typo3/cms-info": "^12.4",
|
||||
"typo3/cms-recycler": "^12.4",
|
||||
"typo3/cms-reports": "^12.4",
|
||||
"typo3/cms-belog": "^12.4",
|
||||
"typo3/cms-lowlevel": "^12.4",
|
||||
"typo3/cms-beuser": "^12.4",
|
||||
"typo3/cms-filemetadata": "^12.4",
|
||||
"typo3/cms-tstemplate": "^12.4",
|
||||
"typo3/cms-filelist": "^13.4",
|
||||
"typo3/cms-fluid-styled-content": "^13.4",
|
||||
"typo3/cms-backend": "^13.4",
|
||||
"typo3/cms-viewpage": "^13.4",
|
||||
"typo3/cms-form": "^13.4",
|
||||
"typo3/cms-info": "^13.4",
|
||||
"typo3/cms-recycler": "^13.4",
|
||||
"typo3/cms-reports": "^13.4",
|
||||
"typo3/cms-belog": "^13.4",
|
||||
"typo3/cms-lowlevel": "^13.4",
|
||||
"typo3/cms-beuser": "^13.4",
|
||||
"typo3/cms-filemetadata": "^13.4",
|
||||
"typo3/cms-tstemplate": "^13.4",
|
||||
"catbird/cartedalegare": "@dev"
|
||||
},
|
||||
"config": {
|
||||
@@ -66,5 +66,10 @@
|
||||
"typo3/cms": {
|
||||
"web-dir": "public"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"post-autoload-dump": [
|
||||
"@php patches/fix_fs_media_gallery_album_assign.php"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
796
composer.lock
generated
796
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -78,6 +78,7 @@ return [
|
||||
'dateTimeNotRequired' => '0',
|
||||
'hidePageTreeForAdministrationModule' => '0',
|
||||
'manualSorting' => '0',
|
||||
'pageTreePluginPreview' => '1',
|
||||
'prependAtCopy' => '1',
|
||||
'resourceFolderImporter' => '/news_import',
|
||||
'rteForTeaser' => '0',
|
||||
@@ -132,7 +133,6 @@ return [
|
||||
'GFX' => [
|
||||
'jpg_quality' => '80',
|
||||
'processor' => 'ImageMagick',
|
||||
'processor_allowTemporaryMasksAsPng' => 0,
|
||||
'processor_colorspace' => 'RGB',
|
||||
'processor_effects' => false,
|
||||
'processor_enabled' => '1',
|
||||
@@ -202,12 +202,10 @@ return [
|
||||
'displayErrors' => 1,
|
||||
'encryptionKey' => 'efccad22f08ec986fda57f4e46959a58eb14d68c3f43726306c7850ba81e5ae0bc621f40cf3ab47589bbef1c3f23f96f',
|
||||
'exceptionalErrors' => 4096,
|
||||
'features' => [
|
||||
'security.usePasswordPolicyForFrontendUsers' => true,
|
||||
],
|
||||
'sitename' => 'Carte da legare',
|
||||
'features' => [],
|
||||
'lang' => [
|
||||
'requireApprovedLocalizations' => false,
|
||||
],
|
||||
'sitename' => 'Carte da legare',
|
||||
],
|
||||
];
|
||||
|
||||
24
patches/fix_fs_media_gallery_album_assign.php
Normal file
24
patches/fix_fs_media_gallery_album_assign.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
$file = dirname(__DIR__) . '/vendor/minifranske/fs-media-gallery/Classes/Controller/MediaAlbumController.php';
|
||||
|
||||
echo "Fix sending incorrect variable to Fluid template - 20260714\n\n";
|
||||
|
||||
if (file_exists($file)) {
|
||||
$content = file_get_contents($file);
|
||||
|
||||
$oldLine = '\'mediaAlbum\' => $mediaAlbum,';
|
||||
$newLine = '\'mediaAlbum\' => $mediaAlbumObject,';
|
||||
|
||||
if (strpos($content, $oldLine) !== false) {
|
||||
$content = str_replace($oldLine, $newLine, $content);
|
||||
file_put_contents($file, $content);
|
||||
echo "\n-> [SUCCESS] Patch fs_media_gallery applied!\n\n";
|
||||
} else {
|
||||
echo "\n-> [INFO] Patch fs_media_gallery not applied or row not found.\n\n";
|
||||
}
|
||||
} else {
|
||||
echo "\n-> [ERROR] Unable to find fs-media-gallery file.\n\n";
|
||||
}
|
||||
92
patches/fix_maps.php
Normal file
92
patches/fix_maps.php
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
if (!defined('TYPO3_COMPOSER_MODE')) {
|
||||
define('TYPO3_COMPOSER_MODE', true);
|
||||
}
|
||||
|
||||
$classLoader = require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
\TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(
|
||||
1,
|
||||
\TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_CLI
|
||||
);
|
||||
|
||||
\TYPO3\CMS\Core\Core\Bootstrap::init($classLoader);
|
||||
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
use TYPO3\CMS\Core\Database\ConnectionPool;
|
||||
|
||||
$connection = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable('tt_content');
|
||||
$queryBuilder = $connection->createQueryBuilder();
|
||||
|
||||
$result = $queryBuilder
|
||||
->select('uid', 'pi_flexform')
|
||||
->from('tt_content')
|
||||
->where($queryBuilder->expr()->eq('CType', $queryBuilder->createNamedParameter('ods_osm_pi1')))
|
||||
->executeQuery();
|
||||
|
||||
$rows = $result->fetchAllAssociative();
|
||||
|
||||
$count = 0;
|
||||
|
||||
foreach ($rows as $row) {
|
||||
if (empty($row['pi_flexform'])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$xml = simplexml_load_string($row['pi_flexform']);
|
||||
if (!$xml || !isset($xml->data->sheet)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$targetSheet = null;
|
||||
foreach ($xml->data->sheet as $sheet) {
|
||||
if ((string)$sheet['index'] === 'sDEF') {
|
||||
$targetSheet = $sheet;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!$targetSheet) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$targetLang = null;
|
||||
foreach ($targetSheet->language as $lang) {
|
||||
if ((string)$lang['index'] === 'lDEF') {
|
||||
$targetLang = $lang;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!$targetLang) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$updateField = function($langNode, $fieldName, $newValue) {
|
||||
$fieldFound = null;
|
||||
foreach ($langNode->field as $field) {
|
||||
if ((string)$field['index'] === $fieldName) {
|
||||
$fieldFound = $field;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ($fieldFound) {
|
||||
$fieldFound->value[0] = $newValue;
|
||||
}
|
||||
};
|
||||
|
||||
$updateField($targetLang, 'show_popups', '1');
|
||||
$updateField($targetLang, 'show_layerswitcher', '-1');
|
||||
|
||||
// DB save
|
||||
$connection->update(
|
||||
'tt_content',
|
||||
['pi_flexform' => $xml->asXML()],
|
||||
['uid' => $row['uid']]
|
||||
);
|
||||
|
||||
echo "Updated UID: " . $row['uid'] . "\n";
|
||||
$count++;
|
||||
}
|
||||
|
||||
echo "OK. Total updated: $count\n";
|
||||
@@ -173,6 +173,10 @@
|
||||
|
||||
ExpiresByType text/x-cross-domain-policy "access plus 1 week"
|
||||
|
||||
<FilesMatch "^index\.php$">
|
||||
ExpiresActive Off
|
||||
</FilesMatch>
|
||||
|
||||
</IfModule>
|
||||
|
||||
### End: Browser caching of resource files ###
|
||||
@@ -202,7 +206,7 @@
|
||||
AddType application/xml rdf xml
|
||||
|
||||
# JavaScript
|
||||
AddType application/javascript js
|
||||
AddType application/javascript js mjs
|
||||
|
||||
# Manifest files
|
||||
AddType application/manifest+json webmanifest
|
||||
@@ -303,7 +307,7 @@ AddDefaultCharset utf-8
|
||||
# IMPORTANT: This rule has to be the very first RewriteCond in order to work!
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gz)$ %{ENV:CWD}$1.$3 [L]
|
||||
RewriteRule ^(.+)\.(\d+)\.(php|js|mjs|css|png|jpg|gif|svg|avif|webp|gz)$ %{ENV:CWD}$1.$3 [L]
|
||||
|
||||
# Access block for folders
|
||||
RewriteRule _(?:recycler|temp)_/ - [F]
|
||||
@@ -318,15 +322,13 @@ AddDefaultCharset utf-8
|
||||
RewriteCond %{SCRIPT_FILENAME} -f
|
||||
RewriteRule (?:^|/)\. - [F]
|
||||
|
||||
# Stop rewrite processing, if we are in any other known directory
|
||||
# Stop rewrite processing, if we are in any known directory
|
||||
# NOTE: Add your additional local storages here
|
||||
RewriteRule ^(?:fileadmin/|typo3conf/|typo3temp/|uploads/) - [L]
|
||||
|
||||
# If the file/symlink/directory does not exist but is below /typo3/, redirect to the TYPO3 Backend entry point.
|
||||
# If the file/symlink/directory does not exist but is below /typo3/, redirect to the main TYPO3 entry point.
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME} !-l
|
||||
RewriteRule ^typo3/(.*)$ %{ENV:CWD}typo3/index.php [QSA,L]
|
||||
RewriteRule ^typo3/(.*)$ %{ENV:CWD}index.php [QSA,L]
|
||||
|
||||
# If the file/symlink/directory does not exist => Redirect to index.php.
|
||||
# For httpd.conf, you need to prefix each '%{REQUEST_FILENAME}' with '%{DOCUMENT_ROOT}'.
|
||||
|
||||
@@ -16,6 +16,6 @@
|
||||
// Set up the application for the frontend
|
||||
call_user_func(static function () {
|
||||
$classLoader = require dirname(__DIR__).'/vendor/autoload.php';
|
||||
\TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(0, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_FE);
|
||||
\TYPO3\CMS\Core\Core\Bootstrap::init($classLoader)->get(\TYPO3\CMS\Frontend\Http\Application::class)->run();
|
||||
\TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run();
|
||||
\TYPO3\CMS\Core\Core\Bootstrap::init($classLoader)->get(\TYPO3\CMS\Core\Http\Application::class)->run();
|
||||
});
|
||||
|
||||
@@ -13,9 +13,36 @@
|
||||
* The TYPO3 project - inspiring people to share!
|
||||
*/
|
||||
|
||||
// Set up the application for the backend
|
||||
call_user_func(static function () {
|
||||
$classLoader = require dirname(dirname(__DIR__)).'/vendor/autoload.php';
|
||||
\TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(1, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_BE);
|
||||
\TYPO3\CMS\Core\Core\Bootstrap::init($classLoader)->get(\TYPO3\CMS\Backend\Http\Application::class)->run();
|
||||
});
|
||||
// Legacy wrapper for typo3/index.php
|
||||
// @deprecated will be removed in TYPO3 v14, /index.php entrypoint should be used directly
|
||||
|
||||
// defer deprecation log message
|
||||
$_SERVER['TYPO3_DEPRECATED_ENTRYPOINT'] = 1;
|
||||
|
||||
array_map(
|
||||
static function (string $var): void {
|
||||
$setenv = static function (string $name, ?string $value = null): void {
|
||||
// If PHP is running as an Apache module and an existing
|
||||
// Apache environment variable exists, overwrite it
|
||||
if (function_exists('apache_getenv') && function_exists('apache_setenv') && apache_getenv($name)) {
|
||||
apache_setenv($name, $value);
|
||||
}
|
||||
|
||||
if (function_exists('putenv')) {
|
||||
putenv("$name=$value");
|
||||
}
|
||||
|
||||
$_ENV[$name] = $value;
|
||||
};
|
||||
|
||||
if (isset($_SERVER[$var])) {
|
||||
$_SERVER[$var] = str_replace('/typo3/index.php', '/index.php', $_SERVER[$var]);
|
||||
}
|
||||
if (isset($_ENV[$var])) {
|
||||
$setenv($var, str_replace('/typo3/index.php', '/index.php', $_ENV[$var]));
|
||||
}
|
||||
},
|
||||
['SCRIPT_NAME', 'SCRIPT_FILENAME', 'SCRIPT_URI', 'SCRIPT_URL', 'PHP_SELF'],
|
||||
);
|
||||
|
||||
require '../index.php';
|
||||
|
||||
@@ -15,6 +15,6 @@
|
||||
|
||||
call_user_func(static function () {
|
||||
$classLoader = require dirname(dirname(__DIR__)).'/vendor/autoload.php';
|
||||
\TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(1, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_INSTALL);
|
||||
\TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(1);
|
||||
\TYPO3\CMS\Core\Core\Bootstrap::init($classLoader, true)->get(\TYPO3\CMS\Install\Http\Application::class)->run();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user