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

Commit

Permalink
Remove insert tags in page names from title attributes (#2853)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Feb 24, 2011
1 parent 4d9b55a commit 1588d7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ModuleNewsletterList.php
Expand Up @@ -98,7 +98,7 @@ protected function compile()

if (!isset($arrJumpTo[$objNewsletter->jumpTo]))
{
$objJumpTo = $this->Database->prepare("SELECT id, alias FROM tl_page WHERE id=? AND (start='' OR start<$time) AND (stop='' OR stop>$time) AND published=1")
$objJumpTo = $this->Database->prepare("SELECT id, alias FROM tl_page WHERE id=?" . (!BE_USER_LOGGED_IN ? " AND (start='' OR start<$time) AND (stop='' OR stop>$time) AND published=1" : ""))
->limit(1)
->execute($objNewsletter->jumpTo);

Expand All @@ -123,7 +123,7 @@ protected function compile()

$arrNewsletter[] = array
(
'subject' => $objNewsletter->subject,
'subject' => strip_insert_tags($objNewsletter->subject),
'href' => sprintf($strUrl, $strAlias),
'date' => $this->parseDate($GLOBALS['TL_CONFIG']['dateFormat'], $objNewsletter->date),
'datim' => $this->parseDate($GLOBALS['TL_CONFIG']['datimFormat'], $objNewsletter->date),
Expand Down

0 comments on commit 1588d7e

Please sign in to comment.