From 3e29c6f58bbe9c14bbba5745e44d5e757f56620e Mon Sep 17 00:00:00 2001 From: lsces Date: Mon, 1 Oct 2012 10:04:21 +0100 Subject: Tidy constructor to later style $bindVars is already an array --- Nexus.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nexus.php b/Nexus.php index 30cac60..ff283be 100644 --- a/Nexus.php +++ b/Nexus.php @@ -26,7 +26,7 @@ class Nexus extends NexusSystem { * Initialisation of this class */ function Nexus( $pMenuId=NULL ) { - NexusSystem::NexusSystem(); + parent::__construct(); $this->mMenuId = $pMenuId; // if the cache folder doesn't exist yet, create it if( !is_dir( TEMP_PKG_PATH.NEXUS_PKG_NAME.'/modules' ) ) { @@ -62,7 +62,7 @@ class Nexus extends NexusSystem { $query .= ' WHERE nm.`menu_id`=?'; $bindVars = array( $pMenuId ); } - if( $result = $this->mDb->query( $query, array( $bindVars ) ) ) { + if( $result = $this->mDb->query( $query, $bindVars ) ) { $ret = $result->fields; $ret['cache']['file'] = 'mod_'.preg_replace( "/ /", "_", $ret['title'] ).'_'.$pMenuId.'.tpl'; $ret['cache']['path'] = TEMP_PKG_PATH.NEXUS_PKG_NAME."/modules/".$ret['cache']['file']; -- cgit v1.3