Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
[Update] Changed page icons due to page type conflicting with Contao …
Browse files Browse the repository at this point in the history
…4.13
  • Loading branch information
zoglo committed Oct 27, 2022
1 parent 62126a2 commit 60735e6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Resources/contao/classes/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

use Contao\Frontend;
use Contao\PageModel;
use Database\Result;

/**
* Provide methods regarding page duplicates.
Expand Down Expand Up @@ -75,8 +76,8 @@ public function getSearchablePages($arrPages, $intRoot=0, $blnIsSitemap=false)
/**
* Calculate the page status icon name for duplicate page type
*
* @param \PageModel|\Database\Result|\stdClass $objPage The page object
* @param string $image Image file name
* @param PageModel|Result|\stdClass $objPage The page object
* @param string $image Image file name
*
* @return string The status icon path
*/
Expand All @@ -87,7 +88,7 @@ public function getPageDuplicateStatusIcon($objPage, $image)
return $image;
}

return 'bundles/contaopageduplicate/' . $image;
return 'bundles/contaopageduplicate/' . str_replace('regular', 'duplicate', $image);;
}

private function findPageDuplicates()
Expand Down

0 comments on commit 60735e6

Please sign in to comment.