امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
PHP:
Without the...
Read more
کد:
if (!preg_match('#^[a-z0-9_]+$#i', $name))
{
// We only enforce this with development on and outside of the install/upgrade system because this
// constraint was bugged prior to 2.2. This should avoid end users running into it or upgrades being
// blocked because of it.
if (\XF::$developmentMode && !(\XF::app() instanceof \XF\Install\App))
{
throw $tag->exception(\XF::phrase('macro_names_may_only_contain_alphanumeric_underscore'));
}
}
Read more
