Comment and typing improvements

To make the StatusNet::addPlugin() accept only arrays,
the lib/default.php had to be changed because all plugins
had 'null' as default value instead of an array.
This commit is contained in:
Mikael Nordfeldth
2013-11-18 20:43:00 +01:00
parent 06b068d43b
commit c942bdcb43
4 changed files with 16 additions and 16 deletions

View File

@@ -95,7 +95,7 @@ require_once(INSTALLDIR.'/lib/language.php');
require_once(INSTALLDIR.'/lib/event.php');
require_once(INSTALLDIR.'/lib/plugin.php');
function addPlugin($name, $attrs = null)
function addPlugin($name, array $attrs=array())
{
return StatusNet::addPlugin($name, $attrs);
}