mirror of
https://github.com/friendica/friendica
synced 2025-04-26 14:30:13 +00:00
Function names
Update function names and corresponding function calls
This commit is contained in:
parent
54827e7fed
commit
0091d318e5
23 changed files with 668 additions and 535 deletions
|
@ -51,7 +51,7 @@ function get_old_attachment_data($body) {
|
|||
|
||||
if (preg_match("/\[img\]([$URLSearchString]*)\[\/img\]/ism", $attacheddata, $matches)) {
|
||||
|
||||
$picturedata = get_photo_info($matches[1]);
|
||||
$picturedata = Photo::getPhotoInfo($matches[1]);
|
||||
|
||||
if (($picturedata[0] >= 500) && ($picturedata[0] >= $picturedata[1]))
|
||||
$post["image"] = $matches[1];
|
||||
|
@ -221,7 +221,7 @@ function get_attached_data($body, $item = array()) {
|
|||
$post["preview"] = $pictures[0][2];
|
||||
$post["text"] = str_replace($pictures[0][0], "", $body);
|
||||
} else {
|
||||
$imgdata = get_photo_info($pictures[0][1]);
|
||||
$imgdata = Photo::getPhotoInfo($pictures[0][1]);
|
||||
if (substr($imgdata["mime"], 0, 6) == "image/") {
|
||||
$post["type"] = "photo";
|
||||
$post["image"] = $pictures[0][1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue