Photo to src

Move Photo to Friendica\Object namespace and replace require_once statments with use statements.
This commit is contained in:
Adam Magness 2017-11-29 07:52:27 -05:00
parent 7b5a0fdbe0
commit 54827e7fed
27 changed files with 68 additions and 60 deletions

View file

@ -1,13 +1,12 @@
<?php
/**
* @file include/network.php
*/
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
use Friendica\Network\Probe;
use Friendica\Object\Photo;
use Friendica\Util\XML;
/**
@ -687,7 +686,6 @@ function scale_external_images($srctext, $include_link = true, $scale_replace =
$matches = null;
$c = preg_match_all('/\[img.*?\](.*?)\[\/img\]/ism', $s, $matches, PREG_SET_ORDER);
if ($c) {
require_once 'include/Photo.php';
foreach ($matches as $mtch) {
logger('scale_external_image: ' . $mtch[1]);