]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Paths admin panel should not insist on an ssl server being specified,
authorZach Copley <zach@status.net>
Thu, 24 Dec 2009 22:50:28 +0000 (16:50 -0600)
committerEvan Prodromou <evan@status.net>
Thu, 24 Dec 2009 23:15:37 +0000 (15:15 -0800)
ever.

actions/pathsadminpanel.php
actions/siteadminpanel.php

index c6daa173456dd24b80d153e90ee391adf502b11d..d39c7c449ae81b834178f09b9bc6c673c88774c2 100644 (file)
@@ -162,12 +162,9 @@ class PathsadminpanelAction extends AdminPanelAction
 
         // Validate SSL setup
 
-        if (in_array($values['site']['ssl'], array('sometimes', 'always'))) {
-            if (empty($values['site']['sslserver'])) {
-                $this->clientError(_("You must set an SSL server when enabling SSL."));
-            }
+        if (mb_strlen($values['site']['sslserver']) > 255) {
+            $this->clientError(_("Invalid SSL server. The maximum length is 255 characters."));
         }
-
     }
 
 }
index f260a44760ea17fc47c8cd82e32483f3bb03a6aa..5e29f4c19124bae6df47c0211d3944361bca2ebd 100644 (file)
@@ -191,10 +191,6 @@ class SiteadminpanelAction extends AdminPanelAction
             $this->clientError(_("Snapshot frequency must be a number."));
         }
 
-        if (mb_strlen($values['site']['sslserver']) > 255) {
-            $this->clientError(_("Invalid SSL server. The maximum length is 255 characters."));
-        }
-
         // Validate text limit
 
         if (!Validate::number($values['site']['textlimit'], array('min' => 140))) {