From 20a3778db22071c613ced57e1c60d54b7d97f80c Mon Sep 17 00:00:00 2001 From: Christian Fowler Date: Fri, 30 Jan 2009 16:11:52 +0000 Subject: pass pFunctionParam by reference in invokeServices so service methods can alter parmater hash if need be, such as in the content_verify_function method --- LibertyContent.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LibertyContent.php b/LibertyContent.php index 8555d51..8835e42 100644 --- a/LibertyContent.php +++ b/LibertyContent.php @@ -3,7 +3,7 @@ * Management of Liberty content * * @package liberty -* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyContent.php,v 1.392 2009/01/28 21:29:10 tekimaki_admin Exp $ +* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyContent.php,v 1.393 2009/01/30 16:11:52 spiderr Exp $ * @author spider */ @@ -351,6 +351,7 @@ class LibertyContent extends LibertyBase { if( !empty( $pParamHash['force_history'] ) || ( empty( $pParamHash['minor'] ) && $this->getField( 'version' ) && $pParamHash['field_changed'] )) { if( empty( $pParamHash['has_no_history'] ) ) { +vd( $pParamHash ); die; $this->storeHistory(); } //$action = "Created"; @@ -816,7 +817,7 @@ class LibertyContent extends LibertyBase { /** * Set up access to services used by the object */ - function invokeServices( $pServiceFunction, $pFunctionParam=NULL ) { + function invokeServices( $pServiceFunction, &$pFunctionParam=NULL ) { global $gLibertySystem; $errors = array(); // Invoke any services store functions such as categorization or access control -- cgit v1.3