]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Change plugin to addon
[friendica.git] / update.php
index ff0885229dcfc18dcc87d32342921fcf98748751..3cfc39e192e89576e5527b520c746a8f4f70de85 100644 (file)
@@ -85,21 +85,21 @@ function update_1191() {
        Config::set('system', 'maintenance', 1);
 
        if (Addon::isEnabled('forumlist')) {
-               $plugin = 'forumlist';
-               $plugins = Config::get('system','addon');
-               $plugins_arr = [];
+               $addon = 'forumlist';
+               $addons = Config::get('system', 'addon');
+               $addons_arr = [];
 
-               if ($plugins) {
-                       $plugins_arr = explode(",",str_replace(" ", "",$plugins));
+               if ($addons) {
+                       $addons_arr = explode(",",str_replace(" ", "", $addons));
 
-                       $idx = array_search($plugin, $plugins_arr);
+                       $idx = array_search($addon, $addons_arr);
                        if ($idx !== false){
-                               unset($plugins_arr[$idx]);
+                               unset($addons_arr[$idx]);
                                //delete forumlist manually from addon and hook table
                                // since Addon::uninstall() don't work here
                                q("DELETE FROM `addon` WHERE `name` = 'forumlist' ");
                                q("DELETE FROM `hook` WHERE `file` = 'addon/forumlist/forumlist.php' ");
-                               Config::set('system','addon', implode(", ",$plugins_arr));
+                               Config::set('system','addon', implode(", ", $addons_arr));
                        }
                }
        }