MDL-29218 Repository: $pname, get rid of all the useless code
More details in the Tracker.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user