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

More details in the Tracker.
This commit is contained in:
Matteo Scaramuccia 2013-08-26 23:32:21 +02:00
parent 9b64ec4dae
commit 46d023b77a

View File

@ -1153,14 +1153,6 @@ abstract class repository implements cacheable_object {
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();