Update functions
Update function names and calls. update database functions to dba class calls.
This commit is contained in:
parent
f5d2b83938
commit
c1baa5ed7d
2 changed files with 25 additions and 23 deletions
|
@ -1,13 +1,12 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* View for user import
|
||||
* @file mod/uimport.php
|
||||
* @brief View for user import
|
||||
*/
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Core\Config;
|
||||
|
||||
require_once("include/uimport.php");
|
||||
use Friendica\Core\UserImport;
|
||||
|
||||
function uimport_post(App $a) {
|
||||
switch ($a->config['register_policy']) {
|
||||
|
@ -34,7 +33,7 @@ function uimport_post(App $a) {
|
|||
|
||||
if (x($_FILES, 'accountfile')) {
|
||||
/// @TODO Pass $blocked / $verified, send email to admin on REGISTER_APPROVE
|
||||
import_account($a, $_FILES['accountfile']);
|
||||
UserImport::importAccount($a, $_FILES['accountfile']);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue