Skip to content

Commit

Permalink
Merge pull request #4 from geekwright/installfix
Browse files Browse the repository at this point in the history
Plugin install fix
  • Loading branch information
mambax7 authored Oct 27, 2017
2 parents bbf8840 + 53f88ac commit c9e02ec
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions admin/do_plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
. "<td class='head' align='center' width='20%'>" . _AM_ACTION . "</td>\n"
. "</tr>\n";
foreach ($plugins as $p) {
if ($handler =& $plugins_handler->checkPlugin($p)) {
if ($handler = $plugins_handler->checkPlugin($p)) {
$id = $p->getVar('rssf_conf_id');
$entries = new XoopsFormText('', 'rssf_grab[' . $id . ']', 3, 2, $p->getVar('rssf_grab'));
$order = new XoopsFormText('', 'rssf_order[' . $id . ']', 3, 2, $p->getVar('rssf_order'));
Expand Down Expand Up @@ -96,7 +96,7 @@
. "<td class='odd' align='center'>"
. $p->getVar('rssf_filename') . "</td>\n"
. "<td class='even' align='center'>";
if ($handler =& $plugins_handler->checkPlugin($p)) {
if ($handler = $plugins_handler->checkPlugin($p)) {
$ret .= $handler->modname;
$action->addOption('a', _AM_PLUGIN_ACTIVATE);
} else {
Expand Down Expand Up @@ -144,7 +144,7 @@
. "<td class='even' align='center'>";
$p = $plugins_handler->create();
$p->setVar('rssf_filename', $i);
if ($handler =& $plugins_handler->checkPlugin($p)) {
if ($handler = $plugins_handler->checkPlugin($p)) {
$ret .= $handler->modname;
} else {
if (count($p->getErrors()) > 0) {
Expand Down Expand Up @@ -177,6 +177,7 @@
$rssf_grab = Request::getArray('rssf_grab', array(), 'POST');
$rssf_order = Request::getArray('rssf_order', array(), 'POST');
$action = Request::getArray('action', null, 'POST');
$install = Request::getArray('install', array(), 'POST');
$err = '';
if (isset($action)) {
$keys = array_keys($action);
Expand Down Expand Up @@ -213,9 +214,9 @@
if (!empty($install)) {
$files = array_keys($install);
foreach ($files as $f) {
$p =& $plugins_handler->create();
$p = $plugins_handler->create();
$p->setVar('rssf_filename', $f);
if ($handler =& $plugins_handler->checkPlugin($p)) {
if ($handler = $plugins_handler->checkPlugin($p)) {
$p->setVar('rssf_activated', 1);
$p->setVar('rssf_grab', $xoopsModuleConfig['plugin_entries']);
$p->setVar('sub_entries', $xoopsModuleConfig['plugin_entries']);
Expand Down

0 comments on commit c9e02ec

Please sign in to comment.