From 96ff9129c1ff311a881658f8e30ae086b96146cc Mon Sep 17 00:00:00 2001
From: lucha <lucha@paranoici.org>
Date: Wed, 19 Apr 2017 18:52:19 +0200
Subject: [PATCH] pass the correct argument to is_plugin_active

---
 bin/noblogs.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/noblogs.in b/bin/noblogs.in
index 980e618..ad9d219 100755
--- a/bin/noblogs.in
+++ b/bin/noblogs.in
@@ -525,7 +525,7 @@ function do_rename_plugins($args){
 
         $plugin_dir = NOBLOGS_ROOT . '/wp-content/plugins/';
         foreach ($rename as $old => $new){
-            if (is_plugin_active( $plugin_dir . $old )){
+            if (is_plugin_active( $old )){
                 deactivate_plugins($plugin_dir . $old, false, false);
                 $result = activate_plugin($plugin_dir . $new);
                 if (is_wp_error($result)){
@@ -535,7 +535,7 @@ function do_rename_plugins($args){
                 }
             }
         }
-        restore_currnt_blog():
+        restore_current_blog();
     }
 }
 
-- 
GitLab