Project

General

Profile

Bug #15128 » patch_shortcut_new2.txt

Administrator Admin, 2010-11-05 17:19

 
--- a/t3lib/class.t3lib_tstemplate.php
+++ b/t3lib/class.t3lib_tstemplate.php
@@ -1458,6 +1458,17 @@ class t3lib_TStemplate {
$LD = Array();
+ // Shortcut:
+ if ($page['shortcut_mode']) {
+ $newPage = $GLOBALS['TSFE']->getPageShortcut($page['shortcut'], $page['shortcut_mode'], $thisUid = $page['uid']);
+ // function getPageShortcut can break with too many indirections
+ if ($newPage) {
+ $page = $newPage;
+ }
+ unset($newPage);
+ }
+
+
// Overriding some fields in the page record and still preserves the values by adding them as parameters. Little strange function.
if (is_array($overrideArray)) {
foreach($overrideArray as $theKey => $theNewVal) {
(3-3/5)