mirror of
https://github.com/friendica/friendica
synced 2025-04-25 22:30:10 +00:00
Photo to src
Move Photo to Friendica\Object namespace and replace require_once statments with use statements.
This commit is contained in:
parent
7b5a0fdbe0
commit
54827e7fed
27 changed files with 68 additions and 60 deletions
|
@ -1,8 +1,11 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file include/user.php
|
||||
*/
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBM;
|
||||
use Friendica\Object\Photo;
|
||||
|
||||
require_once 'include/network.php';
|
||||
require_once 'include/plugin.php';
|
||||
|
@ -283,7 +286,6 @@ function create_user($arr) {
|
|||
|
||||
// unless there is no avatar-plugin loaded
|
||||
if(strlen($photo)) {
|
||||
require_once('include/Photo.php');
|
||||
$photo_failure = false;
|
||||
|
||||
$filename = basename($photo);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue