summaryrefslogtreecommitdiff
path: root/lib/common.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-11-29 16:47:51 -0800
committerBrion Vibber <brion@pobox.com>2010-11-29 16:47:51 -0800
commit8161bf079758f5a07549081c24a5e68ec66113b6 (patch)
tree99973c28b101a294936886ac612d72fef9ba2229 /lib/common.php
parentf1f67c2af542aabea4e93d7df0d2e917658e6a83 (diff)
parent3be352551a979cc3e89e0a2b8f950949b932a304 (diff)
Merge branch 'namecase' into 0.9.x
Diffstat (limited to 'lib/common.php')
-rw-r--r--lib/common.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/common.php b/lib/common.php
index cd4fbfb15..d89180718 100644
--- a/lib/common.php
+++ b/lib/common.php
@@ -117,6 +117,17 @@ require_once 'markdown.php';
// XXX: other formats here
+/**
+ * Avoid the NICKNAME_FMT constant; use the Nickname class instead.
+ *
+ * Nickname::DISPLAY_FMT is more suitable for inserting into regexes;
+ * note that it includes the [] and repeating bits, so should be wrapped
+ * directly in a capture paren usually.
+ *
+ * For validation, use Nickname::validate() etc.
+ *
+ * @deprecated
+ */
define('NICKNAME_FMT', VALIDATE_NUM.VALIDATE_ALPHA_LOWER);
require_once INSTALLDIR.'/lib/util.php';