diff options
| author | lsces <lester@lsces.co.uk> | 2012-10-01 10:04:21 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2012-10-01 10:04:21 +0100 |
| commit | 3e29c6f58bbe9c14bbba5745e44d5e757f56620e (patch) | |
| tree | 1dcbe6321ea04632654bd306b94c6c54dde3ddad | |
| parent | 2bbb1b6157c401731b22f03104ebb060a9ef318c (diff) | |
| download | nexus-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.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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']; |
