X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fshowplugins.php;h=8b950eb0aa8e2d02e28da63f42ae4cbe9f35b3db;hb=261ccfac8699534ff584a2f93d5dcd384529d855;hp=058393b0ee3a525b6f27220331021095fb6aec39;hpb=a05e674843afdbae3f138f541624708a664f1f2a;p=quix0rs-gnu-social.git diff --git a/scripts/showplugins.php b/scripts/showplugins.php index 058393b0ee..8b950eb0aa 100755 --- a/scripts/showplugins.php +++ b/scripts/showplugins.php @@ -20,12 +20,11 @@ define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); -require_once INSTALLDIR.'/scripts/commandline.inc'; +require_once INSTALLDIR.'/scripts/commandline.inc.php'; -foreach (StatusNet::getActivePlugins() as $data) { - list($plugin, $args) = $data; +foreach (StatusNet::getActivePlugins() as $plugin=>$args) { echo "$plugin: "; - if ($args === null) { + if (empty($args)) { echo "(no args)\n"; } else { foreach ($args as $arg => $val) {