Skip to content

Commit

Permalink
Version 4.1.0: now for PHP 8.1 too.
Browse files Browse the repository at this point in the history
  • Loading branch information
bihor committed Feb 21, 2022
1 parent d562640 commit 2801a7f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 29 deletions.
32 changes: 15 additions & 17 deletions Classes/Domain/Repository/SessionRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,19 +255,21 @@ public function getPagesWithExtensions($my_c, $my_p, $my_type, $my_value, $my_fl
//print_r($queryBuilder->getParameters());
foreach($result as $row) {
$subject = $row['pi_flexform'];
$pattern = '/<field index="switchableControllerActions">([\n|\r|\t| ]*)<value index="vDEF">(.*)</';
$matches = array();
preg_match($pattern, $subject, $matches);
if ($matches[2]) {
$row['actions'] = str_replace('###', '&gt;', str_replace(';', ', ', str_replace('&gt;', '###', $matches[2])));
} else {
$pattern = '/<field index="what_to_display">([\n|\r|\t| ]*)<value index="vDEF">(.*)</';
$matches = array();
preg_match($pattern, $subject, $matches);
if ($matches[2]) {
$row['actions'] = $matches[2];
}
}
if ($subject) {
$pattern = '/<field index="switchableControllerActions">([\n|\r|\t| ]*)<value index="vDEF">(.*)</';
$matches = array();
preg_match($pattern, $subject, $matches);
if ($matches[2]) {
$row['actions'] = str_replace('###', '&gt;', str_replace(';', ', ', str_replace('&gt;', '###', $matches[2])));
} else {
$pattern = '/<field index="what_to_display">([\n|\r|\t| ]*)<value index="vDEF">(.*)</';
$matches = array();
preg_match($pattern, $subject, $matches);
if ($matches[2]) {
$row['actions'] = $matches[2];
}
}
}
if ($row['sys_language_uid'] > 0) {
// wir brauchen noch die Übersetzungen aus pages!
$language_result = $this->getL10n($row['pid'], $row['sys_language_uid']);
Expand Down Expand Up @@ -591,10 +593,6 @@ function getPageLinks($my_c, $my_p, $linkto_uid)
$queryBuilder->expr()->in('tt_content.uid', $queryBuilder->createNamedParameter($referenceArray, Connection::PARAM_INT_ARRAY))
)
]);
// $res -> andWhere("tt_content.bodytext LIKE '%\"t3://page?uid=".$linkto_uid."\"%'
// OR tt_content.header_link='t3://page?uid=".$linkto_uid."'
// OR tt_content.header_link LIKE 't3://page?uid=".$linkto_uid." %'
// OR tt_content.uid IN (SELECT uid_foreign FROM sys_file_reference WHERE tablenames='tt_content' AND (link='t3://page?uid=".$linkto_uid."' OR link LIKE 't3://page?uid=".$linkto_uid." %'))");
//print_r($res->getSQL());
$result = $res -> orderBy('tt_content.pid')
-> addOrderBy('tt_content.sorting')
Expand Down
4 changes: 2 additions & 2 deletions Documentation/Changelog/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

Changelog
=========
Version 4.0.4:
Version 4.1.0:
New tool: show recently modified pages and content elements.
Layout adapted to TYPO3 11.
Layout adapted to TYPO3 11. Runs now with PHP 8.1 too.
Checking of start- and endtime added.

Version 4.0.1:
Expand Down
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# backendtools

version 4.0.4
version 4.1.0

7 admin tools for extensions, pages, slug, redirects, files, images and links:
extension-list, recent pages and content elements, import redirects, check redirects, delete unused files,
Expand All @@ -9,13 +9,11 @@ images with no title and linklist.
You find the documentation for this extension at typo3.org:
https://docs.typo3.org/p/fixpunkt/backendtools/master/en-us/

Version 3.0.0: extension-key added to composer.json.
List views: search in the rootline and selectbox in the extension-list added.
Breaking: unzip action removed!

Version 4.0.1: now for TYPO3 10 and 11.
Version 4.0.1:
Now for TYPO3 10 and 11.
Breaking: realurl action removed!

Version 4.0.4: Layout adapted to TYPO3 11.
Checking of start- and endtime added.
New tool: show recently modified pages and content elements.
Version 4.1.0:
New tool: show recently modified pages and content elements.
Layout adapted to TYPO3 11. Runs now with PHP 8.1 too.
Checking of start- and endtime added.
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
'state' => 'stable',
'createDirs' => '',
'clearCacheOnLoad' => false,
'version' => '4.0.4',
'version' => '4.1.0',
'constraints' =>
array (
'depends' => array (
Expand Down

0 comments on commit 2801a7f

Please sign in to comment.