diff options
| author | Nick Palmer <nick@sluggardy.net> | 2007-10-25 17:14:15 +0000 |
|---|---|---|
| committer | Nick Palmer <nick@sluggardy.net> | 2007-10-25 17:14:15 +0000 |
| commit | b92b718ef0e4919803995c7f8d431ef77110b093 (patch) | |
| tree | ad9ec2d7839a929fa23ecd73418280cfb244ec5d | |
| parent | 04a96c12d2c960a647823acd406dee94ea98fe9d (diff) | |
| download | nexus-b92b718ef0e4919803995c7f8d431ef77110b093.tar.gz nexus-b92b718ef0e4919803995c7f8d431ef77110b093.tar.bz2 nexus-b92b718ef0e4919803995c7f8d431ef77110b093.zip | |
Fix up various vd()s to use something more useful.
| -rw-r--r-- | Nexus.php | 4 | ||||
| -rw-r--r-- | menus.php | 6 | ||||
| -rw-r--r-- | servicefunctions_inc.php | 4 |
3 files changed, 7 insertions, 7 deletions
@@ -4,7 +4,7 @@ * * @abstract * @author xing <xing@synapse.plus.com> -* @version $Revision: 1.25 $ +* @version $Revision: 1.26 $ * @package nexus */ @@ -248,7 +248,7 @@ class Nexus extends NexusSystem { } $this->writeMenuCache( $ret ); } else { - vd( $this->mErrors ); + error_log( "Error storing menu: " . vc($this->mErrors) ); } return $ret; } @@ -1,7 +1,7 @@ <?php /** * @author xing <xing@synapse.plus.com> - * @version $Revision: 1.13 $ + * @version $Revision: 1.14 $ * @package nexus * @subpackage functions */ @@ -50,7 +50,7 @@ if( isset( $_REQUEST['action'] ) ) { if( $gNexus->importStructure( $_REQUEST['structure_id'] ) ) { $formfeedback['success'] = tra( 'The structure was successfully imported as menu.' ); } else { - vd( $gNexus->mErrors ); + $gBitSystem->fatalError( "Error Importing Structure", "There was an error importing the structure: " . vc($gNexus->mErrors ) ); } } } @@ -60,7 +60,7 @@ if( isset( $_REQUEST['confirm'] ) ) { header ("Location: ".NEXUS_PKG_URL."menus.php"); die; } else { - vd( $gNexus->mErrors ); + $gBitSystem->fatalError( "Error Deleting Menu", "There was an error deleting the menu: " . vc($gNexus->mErrors) ); } } diff --git a/servicefunctions_inc.php b/servicefunctions_inc.php index 3d04d9d..a90d38e 100644 --- a/servicefunctions_inc.php +++ b/servicefunctions_inc.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_nexus/servicefunctions_inc.php,v 1.4 2006/10/11 10:15:23 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_nexus/servicefunctions_inc.php,v 1.5 2007/10/25 17:14:15 nickpalmer Exp $ * * @package nexus * @subpackage functions @@ -51,7 +51,7 @@ function nexus_content_store( $pObject, $pParamHash ) { $nexusHash['rsrc'] = $pParamHash['content_id']; $nexusHash['rsrc_type'] = 'content_id'; if( !$nexus->storeItem( $nexusHash ) ) { - vd( $nexus->mErrors ); + $gBitSystem->fatalError("Error Storing Item", "There was an error storing the item: " . vc( $nexus->mErrors ); } $nexus->load(); } elseif( !empty( $pParamHash['nexus']['remove_item'] ) ) { |
