]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
debug for content too long
authorEvan Prodromou <evan@prodromou.name>
Sun, 17 Aug 2008 15:24:19 +0000 (11:24 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sun, 17 Aug 2008 15:24:19 +0000 (11:24 -0400)
darcs-hash:20080817152419-84dde-5df1554695bd8560e5affa0ff74f7d0ab7c7c3ff.gz

actions/newnotice.php

index 056b45b8aa07b362aa36be07197b271e5d02f214..cc40f89bc137a519843858e7fdc20f659447d0b0 100644 (file)
@@ -44,6 +44,8 @@ class NewnoticeAction extends Action {
                        $this->show_form(_('No content!'));
                        return;
                } else if (mb_strlen($content) > 140) {
+                       common_debug("Content = '$content'", __FILE__);
+                       common_debug("mb_strlen(\$content) = " . mb_strlen($content), __FILE__);
                        $this->show_form(_('That\'s too long. Max notice size is 140 chars.'));
                        return;
                }