[VkBridge] Fixed image src link generating for photo (#700)

This commit is contained in:
Eugene Molotov 2018-05-29 14:01:54 +05:00 committed by LogMANOriginal
parent 1045850043
commit 4369e077c2

View file

@ -256,7 +256,13 @@ class VkBridge extends BridgeAbstract
$original = '';
foreach(array('y_', 'z_', 'w_') as $key) {
if (!isset($data['temp'][$key])) continue;
$original = $data['temp']['base'] . $data['temp'][$key][0] . ".jpg";
if (!isset($data['temp'][$key][0])) continue;
if (substr($data['temp'][$key][0], 0, 4) == "http") {
$base = "";
} else {
$base = $data['temp']['base'];
}
$original = $base . $data['temp'][$key][0] . ".jpg";
}
if ($original) {