Fix bug for php 5.3

This commit is contained in:
Diego Najar 2018-02-26 18:19:36 +01:00
parent 8d10eb8824
commit e01603bf73
2 changed files with 2 additions and 2 deletions

View File

@ -382,7 +382,7 @@ class Page {
}
// (boolean) Returns TRUE if the page is static, FALSE otherwise
public function static()
public function isStatic()
{
return ($this->getValue('status')=='static');
}

View File

@ -12,7 +12,7 @@
<h1 class="title"><?php echo $page->title(); ?></h1>
</a>
<?php if (!$page->static()): ?>
<?php if (!$page->isStatic()): ?>
<!-- Creation date -->
<h6 class="card-subtitle mb-3 text-muted"><?php echo $page->date(); ?> - <?php echo $Language->get('Reading time') . ': ' . $page->readingTime() ?></h6>
<?php endif ?>