From a47e66409488dac8ff3e59f97a5b0fb496ec4115 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 20 Sep 2010 16:43:00 -0700 Subject: Fix for #2419: There is no function maxDescription in Oauth_application class (broke the 'description too long' error message when editing oauth app registrations) --- actions/editapplication.php | 2 +- actions/newapplication.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'actions') diff --git a/actions/editapplication.php b/actions/editapplication.php index 64cf0a574..b25457069 100644 --- a/actions/editapplication.php +++ b/actions/editapplication.php @@ -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.')); diff --git a/actions/newapplication.php b/actions/newapplication.php index 0f819b349..8b150c315 100644 --- a/actions/newapplication.php +++ b/actions/newapplication.php @@ -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.')); -- cgit v1.2.3-54-g00ecf