diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2009-03-11 10:23:19 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2009-03-11 10:23:19 +0000 |
| commit | 3572a1d2aa8797c656aa2636b9a4e148d61c68b3 (patch) | |
| tree | 3e8d24682fe737f8e59a01f42fc12ccd9772073c /liberty_plugins/data.wikigraph.php | |
| parent | e55f98075855e6330e962de99f44f97df2a04ede (diff) | |
| download | wiki-3572a1d2aa8797c656aa2636b9a4e148d61c68b3.tar.gz wiki-3572a1d2aa8797c656aa2636b9a4e148d61c68b3.tar.bz2 wiki-3572a1d2aa8797c656aa2636b9a4e148d61c68b3.zip | |
add pear module check
Diffstat (limited to 'liberty_plugins/data.wikigraph.php')
| -rw-r--r-- | liberty_plugins/data.wikigraph.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/liberty_plugins/data.wikigraph.php b/liberty_plugins/data.wikigraph.php index 44913ac..d5a3e23 100644 --- a/liberty_plugins/data.wikigraph.php +++ b/liberty_plugins/data.wikigraph.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.3 $ + * @version $Revision: 1.4 $ * @package liberty * @subpackage plugins_data */ @@ -20,7 +20,7 @@ $pluginParams = array ( 'load_function' => 'data_wikigraph', 'title' => 'WikiGraph', 'help_page' => 'DataPluginWikiGraph', - 'description' => tra( "Inserts a graph for visual navigation. The graph shows the page and every page that can be reached from that page." ), + 'description' => tra( "Inserts a graph for visual navigation. The graph shows the page and every page that can be reached from that page. It requies the Image_GraphViz pear plugin and graphviz to be installed: <strong>pear install Image_GraphViz</strong>" ), 'help_function' => 'data_wikigraph_help', 'syntax' => "{wikigraph level= title= }".tra( "Wiki page name" )."{/wikigraph}", 'plugin_type' => DATA_PLUGIN @@ -70,6 +70,11 @@ function data_wikigraph( $pData, $pParams ) { global $gContent, $gBitThemes; $ret = " "; + // check to see if we have pear available. + if( $error = pear_check( "Image/GraphViz.php" )) { + return $error; + } + if( !empty( $gContent ) && is_object( $gContent )) { $querystring = ""; |
