Upgrade to be able to run on PHp7
This commit is contained in:
parent
b9e04c6ca3
commit
4265af9338
5 changed files with 29 additions and 28 deletions
|
|
@ -17,7 +17,7 @@ class PageController extends Katharsis_Controller_Abstract
|
|||
}
|
||||
|
||||
$url = substr($method, 0, -6); // remove Action from urlAction
|
||||
|
||||
|
||||
$pageId = $this->_page->getIdByUrl($url, $preview);
|
||||
|
||||
if(!$pageId) {
|
||||
|
|
@ -37,4 +37,4 @@ class PageController extends Katharsis_Controller_Abstract
|
|||
echo $this->_view->render('main');
|
||||
die();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ class Page extends Katharsis_Model_Abstract
|
|||
}
|
||||
|
||||
$sql = $this->_con->createStatement("SELECT id FROM page WHERE url = :url " . $activeTerm, array("url" => $url));
|
||||
|
||||
|
||||
if($result = $this->_con->fetchOne($sql)){
|
||||
return $result['id'];
|
||||
}
|
||||
|
|
@ -83,4 +83,4 @@ class Page extends Katharsis_Model_Abstract
|
|||
$this->_con->run($sql);
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue