Skip to content
Permalink
Browse files

bugfix in news

  • Loading branch information...
gresakg committed May 16, 2014
1 parent f8a6972 commit b3e47ff6fdedc02f48d7e50dff179b7bdf8a114d
Showing with 4 additions and 3 deletions.
  1. +3 −2 PHaiku/Haiku.php
  2. +1 −1 index.php
@@ -41,10 +41,11 @@ public function theNews() {
public function newsItem(array $args) {
$args = $args[0];
$filename = $this->getFilepath("news/".implode("_",$args),"php");
$news = $this->newData();
if(file_exists($filename)) {
$news = (object) include $filename;
$newsdata = include $filename;
}
$news = $this->newData();
$news->appendArray($newsdata);
$news->date = $this->getNewsDate($args);
$this->app->view->appendData(["news"=>$news]);
$this->data['page']->content = $this->app->view->fetch("newsitem.php");
@@ -42,7 +42,7 @@
\PHaiku\PHaiku::$basedir = __DIR__;
\PHaiku\PHaiku::$version = "0.61.20.14";
\PHaiku\PHaiku::$version = "0.62.20.14";
\PHaiku\PHaiku::setRoutes($di);

0 comments on commit b3e47ff

Please sign in to comment.
You can’t perform that action at this time.