Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

More details in the Tracker.
  • Loading branch information...
commit 832a19829bc06efd3672b0f57ef5ebe18d991f25 1 parent d0ddf08
@scara scara authored
Showing with 0 additions and 8 deletions.
  1. +0 −8 repository/lib.php
View
8 repository/lib.php
@@ -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();
Please sign in to comment.
Something went wrong with that request. Please try again.