From 15909472e8e196663092221b4289c9038f19dc07 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Sun, 12 Aug 2012 13:25:59 +0000
Subject: [PATCH] Poprawienie obsługi obrazków przy wiadomości typu PULL.
---
class/BotMsgGG.php | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/class/BotMsgGG.php b/class/BotMsgGG.php
index 6b0ff53..acd339d 100644
--- a/class/BotMsgGG.php
+++ b/class/BotMsgGG.php
@@ -62,14 +62,21 @@
foreach($this->images as $data) {
$push->putImage($image[3]);
}
-
- $image = $last;
}
$image = $last[2].file_get_contents($last[3]);
}
else
{
+ if(count($this->images) > 0) {
+ $push = new BotAPIGG();
+ foreach($this->images as $data) {
+ if(!$push->existsImage($image[2])) {
+ $push->putImage($image[3]);
+ }
+ }
+ }
+
$image = '';
}
--
Gitblit v1.9.1