diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-05-20 17:01:19 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-05-20 17:01:19 -0400 |
commit | e1f04061b9ea1261ed8805ee52cd8764fe4d9494 (patch) | |
tree | 911b5765fe3cef289aa865ef55c7c1db87fdc7ff /classes/Notice.php | |
parent | 8fcce85864d5f8f7ad9b54317dc62bf330405de2 (diff) |
ease up on the validation
darcs-hash:20080520210119-84dde-a9b74a933bd45b2e6b2f96a53a1be55caa0f7912.gz
Diffstat (limited to 'classes/Notice.php')
-rw-r--r-- | classes/Notice.php | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/classes/Notice.php b/classes/Notice.php index f742d4326..eb08dde52 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -50,9 +50,4 @@ class Notice extends DB_DataObject function validateContent() { return Validate::string($this->content, array('min_length' => 1, 'max_length' => 140)); } - - function validateUrl() { - return is_null($this->url) || (strlen($this->url) == 0) || - Validate::uri($this->url, array('allowed_schemes' => array('http', 'https'))); - } } |