Various code inspection items
- Fix class extension in Module\Admin\Item\Source - Remove useless condition in Module\Admin\Features
This commit is contained in:
parent
6df37afb82
commit
451a06a597
2 changed files with 26 additions and 30 deletions
|
@ -5,7 +5,6 @@ namespace Friendica\Module\Admin;
|
|||
use Friendica\Content\Feature;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Module\BaseAdminModule;
|
||||
|
||||
|
@ -47,9 +46,6 @@ class Features extends BaseAdminModule
|
|||
{
|
||||
parent::content();
|
||||
|
||||
$a = self::getApp();
|
||||
|
||||
if (($a->argc > 1) && ($a->getArgumentValue(1) === 'features')) {
|
||||
$arr = [];
|
||||
$features = Feature::get(false);
|
||||
|
||||
|
@ -75,5 +71,4 @@ class Features extends BaseAdminModule
|
|||
|
||||
return $o;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -5,20 +5,21 @@ namespace Friendica\Module\Admin\Item;
|
|||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Model;
|
||||
use Friendica\Module\BaseAdminModule;
|
||||
|
||||
/**
|
||||
* @author Hypolite Petovan <mrpetovan@gmail.com>
|
||||
*/
|
||||
class Source extends \Friendica\BaseModule
|
||||
class Source extends BaseAdminModule
|
||||
|
||||
{
|
||||
public static function content()
|
||||
{
|
||||
if (!is_site_admin()) {
|
||||
return;
|
||||
}
|
||||
parent::content();
|
||||
|
||||
$a = self::getApp();
|
||||
|
||||
$guid = null;
|
||||
if (!empty($a->argv[1])) {
|
||||
$guid = $a->argv[1];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue