namespace Friendica;
use Friendica\Core\Config;
+use Friendica\Object\Image;
use Friendica\Util\XML;
use dba;
use DOMDocument;
require_once "include/network.php";
-require_once "include/Photo.php";
require_once "include/oembed.php";
/**
}
$src = self::completeUrl($attr["src"], $url);
- $photodata = get_photo_info($src);
+ $photodata = Image::getInfoFromURL($src);
if (($photodata) && ($photodata[0] > 150) && ($photodata[1] > 150)) {
if ($photodata[0] > 300) {
unset($siteinfo["image"]);
- $photodata = get_photo_info($src);
+ $photodata = Image::getInfoFromURL($src);
if (($photodata) && ($photodata[0] > 10) && ($photodata[1] > 10)) {
$siteinfo["images"][] = array("src" => $src,
*
* @param string $tag The pure tag name
* @param int $k Counter for internal use
+ * @return void
*/
private static function arrAddHashes(&$tag, $k)
{