Permalink
Browse files

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

More details in the Tracker.
  • Loading branch information...
scara committed Aug 26, 2013
1 parent d0ddf08 commit 832a19829bc06efd3672b0f57ef5ebe18d991f25
Showing with 0 additions and 8 deletions.
  1. +0 −8 repository/lib.php
View
@@ -1088,14 +1088,6 @@ public static function static_function($plugin, $function) {
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();

0 comments on commit 832a198

Please sign in to comment.