- $edit = !empty($User['admin']) ? htmlspecialchars(@$_GET['edit']) : NULL;
- $article = new ArchiveArticle("$Page$Args.html");
- $Place[1] = ' <small class="date">'.$article->date.'</small>';
+ $edit = $User && $User->admin ? htmlspecialchars(@$_GET['edit']) : NULL;
+ $Place['title'] = $edit ?: $Article->title;
+ if ($Article->file) {
+ $Place['description'] = $Article->teaser;
+ }
+ $Place[1] = ' <small class="date">'.$Article->date.'</small>';