Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
485 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -306,7 +306,7 @@ protected function addEvent($objEvents, $intStart, $intEnd, $intBegin, $intLimit | |
$arrEvent['link'] = $objEvents->title; | ||
$arrEvent['target'] = ''; | ||
$arrEvent['title'] = StringUtil::specialchars($objEvents->title, true); | ||
$arrEvent['href'] = $this->generateEventUrl($objEvents); | ||
$arrEvent['href'] = $objEvents->current()->getFrontendUrl(); | ||
$arrEvent['class'] = $objEvents->cssClass ? ' ' . $objEvents->cssClass : ''; | ||
$arrEvent['recurring'] = $recurring; | ||
$arrEvent['until'] = $until; | ||
|
@@ -418,9 +418,14 @@ protected function addEvent($objEvents, $intStart, $intEnd, $intBegin, $intLimit | |
* @param boolean $blnAbsolute | ||
* | ||
* @return string | ||
* | ||
* @deprecated Deprecated since Contao 4.9, to be removed in Contao 5.0; | ||
* use CalendardEventsModel::getFrontendUrl() instead | ||
This comment has been minimized.
Sorry, something went wrong. |
||
*/ | ||
public static function generateEventUrl($objEvent, $blnAbsolute=false) | ||
{ | ||
@trigger_error('Using Events::generateEventUrl() has been deprecated and will no longer work in Contao 5.0. Use CalendardEventsModel::getFrontendUrl() instead.', E_USER_DEPRECATED); | ||
This comment has been minimized.
Sorry, something went wrong.
xchs
Contributor
|
||
|
||
$strCacheKey = 'id_' . $objEvent->id . ($blnAbsolute ? '_absolute' : ''); | ||
|
||
// Load the URL from cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Edit: Seems like the suggestion markdown is not supported here. :(