mirror of
https://github.com/friendica/friendica
synced 2025-04-25 23:50:11 +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,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]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue