]> git.wh0rd.org - tt-rss.git/blobdiff - lib/phpqrcode/qrsplit.php
minor css fixes (mostly for zoom mode)
[tt-rss.git] / lib / phpqrcode / qrsplit.php
index d75b827371cc9fad4f4b940d5d152846ca943ced..1f9f65c3bd9d7fae2e0577414a58c9cfc533138d 100644 (file)
             if($ret < 0)\r
                 return -1;\r
 \r
-            return $run;\r
+            return $ret;\r
         }\r
 \r
         //----------------------------------------------------------------------\r
                     case QR_MODE_NUM: $length = $this->eatNum(); break;\r
                     case QR_MODE_AN:  $length = $this->eatAn(); break;\r
                     case QR_MODE_KANJI:\r
-                        if ($hint == QR_MODE_KANJI)\r
+                        if ($this->modeHint == QR_MODE_KANJI)\r
                                 $length = $this->eatKanji();\r
                         else    $length = $this->eat8();\r
                         break;\r
             $p = 0;\r
             \r
             while ($p<$stringLen) {\r
-                $mode = self::identifyMode(substr($this->dataStr, $p), $this->modeHint);\r
+                $mode = self::identifyMode(substr($this->dataStr, $p));\r
                 if($mode == QR_MODE_KANJI) {\r
                     $p += 2;\r
                 } else {\r
                 \r
             return $split->splitString();\r
         }\r
-    }
\ No newline at end of file
+    }