]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix for #2419: There is no function maxDescription in Oauth_application class (broke...
authorBrion Vibber <brion@pobox.com>
Mon, 20 Sep 2010 23:43:00 +0000 (16:43 -0700)
committerBrion Vibber <brion@pobox.com>
Mon, 20 Sep 2010 23:43:00 +0000 (16:43 -0700)
actions/editapplication.php
actions/newapplication.php

index 64cf0a5745d134fcceeb7b214844b45dc86111ec..b25457069c7fd9ceee341bd9e4ed1bbafe4747d4 100644 (file)
@@ -188,7 +188,7 @@ class EditApplicationAction extends OwnerDesignAction
         } elseif (Oauth_application::descriptionTooLong($description)) {
             $this->showForm(sprintf(
                 _('Description is too long (max %d chars).'),
-                                    Oauth_application::maxDescription()));
+                                    Oauth_application::maxDesc()));
             return;
         } elseif (mb_strlen($source_url) > 255) {
             $this->showForm(_('Source URL is too long.'));
index 0f819b3499881795e3ce597fd1559846875f7f15..8b150c315139d8c3fdb446685b05d3313c28684f 100644 (file)
@@ -170,7 +170,7 @@ class NewApplicationAction extends OwnerDesignAction
         } elseif (Oauth_application::descriptionTooLong($description)) {
             $this->showForm(sprintf(
                 _('Description is too long (max %d chars).'),
-                Oauth_application::maxDescription()));
+                Oauth_application::maxDesc()));
             return;
         } elseif (empty($source_url)) {
             $this->showForm(_('Source URL is required.'));