diff options
| author | Christian Fowler <spider@viovio.com> | 2010-02-02 22:01:40 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2010-02-02 22:01:40 +0000 |
| commit | a8781a300ab16b5175ac022bf368d40f3846ff1c (patch) | |
| tree | 2c194b4c2e65dc30c5b3a7b4d79b7f6e7a4c135a | |
| parent | 2c608c0ee4d8b1d7e187ab5ad45596498f3b3ce5 (diff) | |
| download | liberty-PRE_BIT_SETUP_CHANGE.tar.gz liberty-PRE_BIT_SETUP_CHANGE.tar.bz2 liberty-PRE_BIT_SETUP_CHANGE.zip | |
add pDefault=TRUE tp getTitle to allow control of returning a default image titlepre_deprecate_bit_setup_incPRE_BIT_SETUP_CHANGE
| -rw-r--r-- | LibertyContent.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/LibertyContent.php b/LibertyContent.php index 150c41e..aaebbfb 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.419 2010/01/30 21:53:52 spiderr Exp $ +* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyContent.php,v 1.420 2010/02/02 22:01:40 spiderr Exp $ * @author spider <spider@steelsun.com> */ @@ -1806,14 +1806,14 @@ class LibertyContent extends LibertyBase { * @param array mInfo type hash of data to be used to provide base data * @return string Descriptive title for the page */ - function getTitle( $pHash=NULL ) { + function getTitle( $pHash=NULL, $pDefault=TRUE ) { $ret = NULL; if( empty( $pHash ) ) { $pHash = &$this->mInfo; } if( !empty( $pHash['title'] ) ) { $ret = $pHash['title']; - } elseif( !empty( $pHash['content_description'] ) ) { + } elseif( $pDefault && !empty( $pHash['content_description'] ) ) { $ret = $pHash['content_description']; } return $ret; |
