From: janw Date: Mon, 14 Apr 2008 09:42:48 +0000 (+0000) Subject: Fixed Typo. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eb6cc43e7c336cacd24628aebb482cf9118551f1;p=gosa.git Fixed Typo. Added check. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10401 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/update-gosa b/gosa-core/update-gosa index 73eb2c69f..e10df6e50 100755 --- a/gosa-core/update-gosa +++ b/gosa-core/update-gosa @@ -35,7 +35,7 @@ Usage: update-gosa install dsc Install the plugin using the dsc information update-gosa remove plugin Remove the plugin named "plugin" from the current configuration. - update-gosa lists Lists installed plugins + update-gosa list Lists installed plugins update-gosa rescan-i18n Rebuilds the translations @@ -218,13 +218,15 @@ function rescan_guide() $master_guide_content.= file_get_contents($guide); } - $plugins= scandir('doc/plugins'); - foreach($plugins as $key => $plugin) { - if($plugin != '.' && $plugin != '..') { - if(is_dir('doc/plugins/'.$plugin)) { - $guide= 'doc/plugins/'.$plugin.'/guide.xml'; - if(file_exists($guide) && is_readable($guide)) { - $master_guide_content.= file_get_contents($guide); + if(file_exists('doc/plugins')) { + $plugins= scandir('doc/plugins'); + foreach($plugins as $key => $plugin) { + if($plugin != '.' && $plugin != '..') { + if(is_dir('doc/plugins/'.$plugin)) { + $guide= 'doc/plugins/'.$plugin.'/guide.xml'; + if(file_exists($guide) && is_readable($guide)) { + $master_guide_content.= file_get_contents($guide); + } } } }