[TYPO3-core] Gremlin #1066: Shortcut to a timer-stopped page leads to a frontend error

Bernhard Kraft kraftb at kraftb.at
Tue Nov 8 20:06:04 CET 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sebastian Kurfuerst wrote:
> Hi list,
> after conversation with Bernhard via IM this is the updated patch. The

The below line was also a problem:

> +       if ($row['doktype'] == 4 && $row['shortcut']) {

Becaus it can be the case that no 'shortcut' is set but just a 'shortcut_mode' (In this case the subpages
of the actual page will get used)

Now it looks like:

> +				if ($row['doktype'] == 4 && ($row['shortcut'] || $row['shortcut_mode']))	{

And later in the code the pages-pid to look up is set to 'shortcut' or $uid via an ?: expression


greets,
Bernhard
- --
- ----------------------------------------------------------------------
"Freiheit ist immer auch die Freiheit des Andersdenkenden"
Rosa Luxemburg, 1871 - 1919
- ----------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDcPccIl4dkVkDMFkRAkO9AKCkhev+3OVMUO7YBkkG1ZBmMqa5oACgnpki
zQbW13o0BbsWODh3Ttt8eFo=
=1fPW
-----END PGP SIGNATURE-----



More information about the TYPO3-team-core mailing list