From 832a19829bc06efd3672b0f57ef5ebe18d991f25 Mon Sep 17 00:00:00 2001 From: Matteo Scaramuccia Date: Mon, 26 Aug 2013 23:32:21 +0200 Subject: [PATCH] MDL-29218 Repository: $pname, get rid of all the useless code More details in the Tracker. --- repository/lib.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/repository/lib.php b/repository/lib.php index bdf05ab994a..da99c4304b3 100644 --- a/repository/lib.php +++ b/repository/lib.php @@ -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();