summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-12-01 11:21:00 -0800
committerBrion Vibber <brion@pobox.com>2010-12-01 11:21:00 -0800
commitf68d4e7d061f33cffbcf685949f3116237c23e55 (patch)
tree359fea7dcf7f9e2e978844072bc13e55b1a6b88d /lib
parent0410462c4b0a1f99a60a6132f6b08388767381fb (diff)
Fix dumb mistake -- changed function names partway through writing Nickname and forgot to update a couple places. :)
Diffstat (limited to 'lib')
-rw-r--r--lib/common.php2
-rw-r--r--lib/nickname.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/common.php b/lib/common.php
index d89180718..cf4d6e1e7 100644
--- a/lib/common.php
+++ b/lib/common.php
@@ -124,7 +124,7 @@ require_once 'markdown.php';
* note that it includes the [] and repeating bits, so should be wrapped
* directly in a capture paren usually.
*
- * For validation, use Nickname::validate() etc.
+ * For validation, use Nickname::normalize(), Nickname::isValid() etc.
*
* @deprecated
*/
diff --git a/lib/nickname.php b/lib/nickname.php
index 48269f3b9..a0c9378cd 100644
--- a/lib/nickname.php
+++ b/lib/nickname.php
@@ -23,7 +23,7 @@ class Nickname
* Regex fragment for pulling an arbitrarily-formated nickname.
*
* Not guaranteed to be valid after normalization; run the string through
- * Nickname::normalize() to get the canonical form, or Nickname::validate()
+ * Nickname::normalize() to get the canonical form, or Nickname::isValid()
* if you just need to check if it's properly formatted.
*
* This and CANONICAL_FMT replace the old NICKNAME_FMT, but be aware
@@ -61,7 +61,7 @@ class Nickname
* @param string $str
* @return boolean
*/
- public static function validate($str)
+ public static function isValid($str)
{
try {
self::normalize($str);