Fix bug for php 5.3
This commit is contained in:
parent
8d10eb8824
commit
e01603bf73
@ -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');
|
||||
}
|
||||
|
@ -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 ?>
|
||||
|
Loading…
Reference in New Issue
Block a user