ZixDev
Member
Hello,
I have 3rd addon, and it has a function:
	
	
	
		
I extend this class and rewrite that function like that (of course, I created an extension in ACP).
	
	
	
		
But it seems that function not overridden.
What am I wrong?
				
			I have 3rd addon, and it has a function:
		Code:
	
	<?php
namespace Abc\Xyz\Job;
use XF\Job\AbstractRebuildJob;
class MathJaxParser extends AbstractRebuildJob
{
    public static function isContainsMathJax(string $message): bool
    {
        return preg_match('/(\\\()(.*?)(\\\))|\$([^\$]+)\$|\$\$([^\$]+)\$\$/ism', $message) === 1;
    }
    ... another function
}I extend this class and rewrite that function like that (of course, I created an extension in ACP).
		Code:
	
	<?php
namespace LilTee\Tools\Abc\Xyz\Job;
class MathJaxParser extends XFCP_MathJaxParser
{
    public static function isContainsMathJax(string $message): bool
    {
        return true;
    }
}But it seems that function not overridden.
What am I wrong?
 
 
		 
 
		