mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-29218 Repository: $pname, get rid of all the useless code
More details in the Tracker.
This commit is contained in:
parent
9b64ec4dae
commit
46d023b77a
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user