Merge pull request #4577 from MrPetovan/task/add-feedtest-module

Make feedtest module for logged users only
This commit is contained in:
Michael Vogel 2018-03-11 07:10:13 +01:00 committed by GitHub
commit 4a0781db19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,11 @@ require_once 'include/text.php';
function feedtest_content(App $a)
{
//$a->page['template'] = "wide-2-columns";
if (!local_user()) {
info(L10n::t('You must be logged in to use this module'));
return;
};
$result = [];
if (!empty($_REQUEST['url'])) {
$url = $_REQUEST['url'];