Update functions

Update function names and calls. update database functions to dba class calls.
This commit is contained in:
Adam Magness 2018-01-13 09:14:37 -05:00
commit c1baa5ed7d
2 changed files with 25 additions and 23 deletions

View file

@ -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;
}
}