MDL-39087 Fix plugin_manager::plugin_name() implementation
authorDavid Mudrák <david@moodle.com>
Thu, 11 Apr 2013 12:20:22 +0000 (14:20 +0200)
committerDavid Mudrák <david@moodle.com>
Thu, 11 Apr 2013 23:42:58 +0000 (01:42 +0200)
commit7a46a55d004e28b75cfde1831873397da05db844
treeb90b422a99d508cee54961848a6085eb6ade1887
parentbfaed432149bee3259d65efd710bf32d06e99f3f
MDL-39087 Fix plugin_manager::plugin_name() implementation

This is not directly related to the issue. However, it turned out that
if this method was called on plugin_manager without loaded plugins, it
would throw an error. This new implementation uses cleaner access to the
plugininfo subclass.
lib/pluginlib.php