git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
login: preview teaser metadata of goto target
[minimedit.git]
/
login
/
index.php
diff --git
a/login/index.php
b/login/index.php
index e1f0cae048e58a2753b6a61dbb20ea46b025a0cc..7038dcbdcf7d9085b1a802f4c5548f35cd887a35 100644
(file)
--- 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') {
$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();
$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->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';
}
ob_start();
require_once 'login/form.inc.php';