Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Moved all icons shared in the back end and front end to `assets/conta…
Browse files Browse the repository at this point in the history
…o/images`, so there are no more interrelations between the front end and the back end theme (see #4662)
  • Loading branch information
leofeyer committed Nov 2, 2012
1 parent 4e0f140 commit 95ff515
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ModuleNewsletterReader.php
Expand Up @@ -140,14 +140,14 @@ protected function compile()

if (in_array($objFile->extension, $allowedDownload))
{
$src = 'system/themes/' . $this->getTheme() . '/images/' . $objFile->icon;
$src = 'assets/contao/images/' . $objFile->icon;

if (($imgSize = @getimagesize(TL_ROOT . '/' . $src)) !== false)
{
$arrEnclosures[$i]['size'] = ' ' . $imgSize[3];
}

$arrEnclosures[$i]['icon'] = TL_FILES_URL . $src;
$arrEnclosures[$i]['icon'] = TL_ASSETS_URL . $src;
$arrEnclosures[$i]['link'] = basename($arrEnclosure[$i]);
$arrEnclosures[$i]['filesize'] = $this->getReadableSize($objFile->filesize);
$arrEnclosures[$i]['title'] = ucfirst(str_replace('_', ' ', $objFile->filename));
Expand Down

0 comments on commit 95ff515

Please sign in to comment.