- Affected version
- 2.3.11
Given the repository
The cause is
SV\Threadmarks\Repository\ThreadmarkCategory, and the add-on accesses ThreadmarkCategory::CONSTANT before calling \XF::repository()` any other add-on attempting to extend this class will fail. [ICODE]\XF\Extension::extendClass() will just return the unexpended class.The cause is
extendClass is calling getAliasedClass which is returning unexpected values due to classLikeExists causing the class to be loaded and then aliased.
PHP:
public function extendClass($class, $fakeBaseClass = null)
{
$class = ltrim($class, '\\');
$class = $this->getAliasedClass($class); //
if (isset($this->extensionMap[$class]))
{
return $this->extensionMap[$class];
}
if (!$class)
{
return $class;
}
$extensions = !empty($this->classExtensions[$class]) ? $this->classExtensions[$class] : [];
Last edited:
