mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02: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
1 changed files with 0 additions and 8 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue