Skip to content

Commit

Permalink
MDL-29218 Repository: $pname, get rid of all the useless code
Browse files Browse the repository at this point in the history
More details in the Tracker.
  • Loading branch information
scara committed Sep 2, 2013
1 parent 9b64ec4 commit 46d023b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions repository/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1153,14 +1153,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();
Expand Down

0 comments on commit 46d023b

Please sign in to comment.