امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
PHP:
This code does assume that field
Read more
کد:
protected function getContentTypeId($contentType)
{
if (empty($this->session->extra['contentTypeId']))
{
$this->session->extra['contentTypeId'] = $this->sourceDb->fetchPairs("
SELECT class, contenttypeid
FROM contenttype
");
}
return $this->session->extra['contentTypeId'][$contentType];
}
This code does assume that field
class in table contenttype is unique - this is not necessarily the case, it is only guaranteed...Read more
