X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/b04f76050d54c67844d5d4026993f6fab0edeae5..2573a637bff34caeb3de0f3489c0c6dfbf6d2a1d:/login/index.php diff --git a/login/index.php b/login/index.php index e1f0cae..7038dcb 100644 --- a/login/index.php +++ b/login/index.php @@ -43,6 +43,8 @@ if (!$User or !$User->login) { $target = new ArchiveArticle("$target.html"); if ($target and $target->handler == 'melding') { + # run forbidden handler to determine metadata + #TODO: generic solution $caller = $Page; $Page = $target; ob_start(); @@ -54,9 +56,8 @@ if (!$User or !$User->login) { if ($target->title) { $Page->title .= ' voor ' . $target->title; } - if ($target->image) { - $Page->image = $target->image; - } + $Page->image = $target->image; + $Page->teaser = $target->teaser; } ob_start(); require_once 'login/form.inc.php';