X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/772961fd4e9be46ad340cad1e55ee5f28cc5b968..2573a637bff34caeb3de0f3489c0c6dfbf6d2a1d:/login/index.php diff --git a/login/index.php b/login/index.php index 4ecee45..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,14 +56,13 @@ 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'; $Page->raw = ob_get_clean(); - $Place['warn'] = $message; + $Page->place['warn'] = $message; return TRUE; }