[RSS Feed/News] Redundant IO check on loading template

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Related to; Fixed - Redundant IO check on loading phrase group

In XF\Template\Templater::getTemplateDataFromSource, there is a file_exists check before an include call, which is redundant;

PHP:

Code:
protected function getTemplateDataFromSource($type, $name)
{
   $file = $this->getTemplateFilePath($type, $name);
   if (!file_exists($file))
   {
      return false;
   }

   return include($file);
}

include returns false on...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom