MDL-29218 Repository: $pname, get rid of all the useless code

More details in the Tracker.
This commit is contained in:
Matteo Scaramuccia
2013-09-02 23:26:49 +02:00
parent d0ddf08dc0
commit 832a19829b
-8
View File
@@ -1088,14 +1088,6 @@ abstract class repository {
return false;
}
$pname = null;
if (is_object($plugin) || is_array($plugin)) {
$plugin = (object)$plugin;
$pname = $plugin->name;
} else {
$pname = $plugin;
}
$args = func_get_args();
if (count($args) <= 2) {
$args = array();