use Friendica\Content\Feature;\r
use Friendica\Core\Config;\r
use Friendica\Core\L10n;\r
-use Friendica\Core\Logger;\r
use Friendica\Core\Renderer;\r
use Friendica\Module\BaseAdminModule;\r
\r
{\r
parent::content();\r
\r
- $a = self::getApp();\r
-\r
- if (($a->argc > 1) && ($a->getArgumentValue(1) === 'features')) {\r
- $arr = [];\r
- $features = Feature::get(false);\r
+ $arr = [];\r
+ $features = Feature::get(false);\r
\r
- foreach ($features as $fname => $fdata) {\r
- $arr[$fname] = [];\r
- $arr[$fname][0] = $fdata[0];\r
- foreach (array_slice($fdata, 1) as $f) {\r
- $set = Config::get('feature', $f[0], $f[3]);\r
- $arr[$fname][1][] = [\r
- ['feature_' . $f[0], $f[1], $set, $f[2], [L10n::t('Off'), L10n::t('On')]],\r
- ['featurelock_' . $f[0], L10n::t('Lock feature %s', $f[1]), (($f[4] !== false) ? "1" : ''), '', [L10n::t('Off'), L10n::t('On')]]\r
- ];\r
- }\r
+ foreach ($features as $fname => $fdata) {\r
+ $arr[$fname] = [];\r
+ $arr[$fname][0] = $fdata[0];\r
+ foreach (array_slice($fdata, 1) as $f) {\r
+ $set = Config::get('feature', $f[0], $f[3]);\r
+ $arr[$fname][1][] = [\r
+ ['feature_' . $f[0], $f[1], $set, $f[2], [L10n::t('Off'), L10n::t('On')]],\r
+ ['featurelock_' . $f[0], L10n::t('Lock feature %s', $f[1]), (($f[4] !== false) ? "1" : ''), '', [L10n::t('Off'), L10n::t('On')]]\r
+ ];\r
}\r
+ }\r
\r
- $tpl = Renderer::getMarkupTemplate('admin/features.tpl');\r
- $o = Renderer::replaceMacros($tpl, [\r
- '$form_security_token' => parent::getFormSecurityToken("admin_manage_features"),\r
- '$title' => L10n::t('Manage Additional Features'),\r
- '$features' => $arr,\r
- '$submit' => L10n::t('Save Settings'),\r
- ]);\r
+ $tpl = Renderer::getMarkupTemplate('admin/features.tpl');\r
+ $o = Renderer::replaceMacros($tpl, [\r
+ '$form_security_token' => parent::getFormSecurityToken("admin_manage_features"),\r
+ '$title' => L10n::t('Manage Additional Features'),\r
+ '$features' => $arr,\r
+ '$submit' => L10n::t('Save Settings'),\r
+ ]);\r
\r
- return $o;\r
- }\r
+ return $o;\r
}\r
}
\ No newline at end of file