[RSS Feed/News] Class extend not work with some function?

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Hello,
I have 3rd addon, and it has a function:
Code:

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...

Read more

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