From 4c05eca9dee137436b998b2d506db5fbd6d10550 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Fri, 13 Jul 2012 18:41:25 +0000 Subject: [PATCH] Zmiany w instrukcjach instalacji i aktualizacji bota w związku ze zmianami w API, a także ujednolicenie informacji i uwag w tych plikach. --- class/BotMsgGG.php | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/class/BotMsgGG.php b/class/BotMsgGG.php index 4ab34a1..4f5638e 100644 --- a/class/BotMsgGG.php +++ b/class/BotMsgGG.php @@ -59,9 +59,6 @@ else { $image = ''; - foreach($this->images as $img) { - $image .= $img[2]; - } } $format = $this->getFormat(); @@ -211,7 +208,7 @@ DOMHelper::rtrim($saveto); DOMHelper::insertElement('br', $saveto); - $tag = DOMHelper::cloneNode($node, $saveto, 'u'); + $tag = DOMHelper::cloneNode($node, $saveto, 'span'); $this->rewrite($node, $tag, FALSE); $saveto->appendChild($tag); break; @@ -223,7 +220,7 @@ $node->setAttribute('start', 1); } - $tag = DOMHelper::cloneNode($node, $saveto, 'u'); + $tag = DOMHelper::cloneNode($node, $saveto, 'span'); $this->rewrite($node, $tag, FALSE); $saveto->appendChild($tag); break; @@ -316,10 +313,9 @@ } $node->setAttribute('name', $name); - $this->img .= $name.file_get_contents($src); + $this->img = $name.file_get_contents($src); - $this->format .= pack('vC', mb_strlen($this->old), self::FORMAT_IMAGE/*|$this->f_type*/) - // //.$this->f_color + $this->format .= pack('vC', mb_strlen($this->old), self::FORMAT_IMAGE) .pack('CCVV', 0x09, 0x01, $size, hexdec($crc)); } } -- Gitblit v1.9.1