summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2012-10-01 10:04:21 +0100
committerlsces <lester@lsces.co.uk>2012-10-01 10:04:21 +0100
commit3e29c6f58bbe9c14bbba5745e44d5e757f56620e (patch)
tree1dcbe6321ea04632654bd306b94c6c54dde3ddad
parent2bbb1b6157c401731b22f03104ebb060a9ef318c (diff)
downloadnexus-PRE_BOOTSTRAP.tar.gz
nexus-PRE_BOOTSTRAP.tar.bz2
nexus-PRE_BOOTSTRAP.zip
Tidy constructor to later stylePRE_BOOTSTRAP
$bindVars is already an array
-rw-r--r--Nexus.php4
1 files 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'];