diff options
| author | Christian Fowler <spider@viovio.com> | 2008-09-18 05:55:22 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2008-09-18 05:55:22 +0000 |
| commit | 79c97791e6423b963ea3989e56307d30353c5b42 (patch) | |
| tree | fcc779da66d721bb3f19b600ccbc252efffb28f4 | |
| parent | af837a228d3e4487d4c15d69d1359b94cbcd213b (diff) | |
| download | liberty-79c97791e6423b963ea3989e56307d30353c5b42.tar.gz liberty-79c97791e6423b963ea3989e56307d30353c5b42.tar.bz2 liberty-79c97791e6423b963ea3989e56307d30353c5b42.zip | |
add default format_guid to prevent empty output
| -rw-r--r-- | plugins/data.quote.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/data.quote.php b/plugins/data.quote.php index fb33c03..785433c 100644 --- a/plugins/data.quote.php +++ b/plugins/data.quote.php @@ -73,7 +73,11 @@ function data_quote_help() { // Executable Routine function data_quote($data, $params) { - global $gLibertySystem, $gBitSmarty; + global $gLibertySystem, $gBitSmarty, $gBitSystem; + + if( empty( $params['format_guid'] ) ) { + $params['format_guid'] = $gBitSystem->getConfig( 'default_format', PLUGIN_GUID_TIKIWIKI ); + } $rendererHash=array(); $rendererHash['content_id']=0; |
