Don't allow double plugin loading

This commit is contained in:
Mikael Nordfeldth
2013-11-18 20:04:00 +01:00
parent dfd83bd898
commit 06b068d43b
3 changed files with 22 additions and 13 deletions

View File

@@ -22,8 +22,7 @@ define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
require_once INSTALLDIR.'/scripts/commandline.inc';
foreach (StatusNet::getActivePlugins() as $data) {
list($plugin, $args) = $data;
foreach (StatusNet::getActivePlugins() as $plugin=>$args) {
echo "$plugin: ";
if ($args === null) {
echo "(no args)\n";