mirror of
https://github.com/friendica/friendica
synced 2025-04-26 19:10:11 +00:00
Remove requirement for App class in legacy mods
This commit is contained in:
parent
7dbf1bb8bb
commit
76d25a27b4
6 changed files with 12 additions and 17 deletions
|
@ -7,7 +7,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
use Friendica\AppHelper;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
|
@ -15,7 +14,7 @@ use Friendica\Model\User;
|
|||
use Friendica\Util\DateTimeFormat;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
function lostpass_post(AppHelper $a)
|
||||
function lostpass_post()
|
||||
{
|
||||
$loginame = trim($_POST['login-name']);
|
||||
if (!$loginame) {
|
||||
|
@ -78,7 +77,7 @@ function lostpass_post(AppHelper $a)
|
|||
DI::baseUrl()->redirect();
|
||||
}
|
||||
|
||||
function lostpass_content(AppHelper $appHelper)
|
||||
function lostpass_content()
|
||||
{
|
||||
if (DI::args()->getArgc() > 1) {
|
||||
$pwdreset_token = DI::args()->getArgv()[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue