- $Place[1] = ' <small class="date">'.$Article->date.'</small>';
- print preg_replace('{(?<=<h2>)(.*?)(?=</h2>)}', ($edit ?: '\1').' [[1]]', ob_get_clean());
- if ($User and $User->admin) {
+ if ($Page->dateparts) {
+ $Page->place[1] = ' <small class="date">'.$Page->date.'</small>';
+ }
+ else {
+ $Page->place[1] = '';
+ }
+ print preg_replace('{(?<=<h2>)(.*?)(?=</h2>)}', ($edit ?: '\1').' [[1]]', $Page->raw);
+ if ($User->admin("edit {$Page->link}")) {