forked from blallo/rss-bridge
[VkBridge] Fixed image src link generating for photo (#700)
This commit is contained in:
parent
1045850043
commit
4369e077c2
1 changed files with 7 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue