使用的时候注释掉/AddonFlare/ForumStats中Listener.php
↓
public static function appPubRenderPage(\XF\Pub\App $app, array &$params, \XF\Mvc\Reply\AbstractReply $reply, \XF\Mvc\Renderer\AbstractRenderer $renderer)
{
self::activate($app->templater()->enableAllTemplatesafFS());
}
以及
↓
public static function getVersion()
{
if (isset($params) && $this->enabled[self::TITLE] == true)
{
$ret = (md5(IDs::getSetB() . IDs::get(2) . IDs::getSetB('')) == IDs::get(0));
}
else
{
$ret = (IDs::getSetB() == IDs::get(1));
}
return $ret;
}
protected static function helperA($val)
{
$f = IDs::getSetD();
return array_map($f, $val);
}
protected static function handleError($f = 'implode')
{
$group = 'set';
$handle = function($f, &$setA = null, &$setB = null) use ($group) {
$setA = __NAMESPACE__ . '\\ID' . 's::' . 'get' . $group . 'E';
$setB = call_user_func_array($f, [self::helperA(self::$order1)]);
};
$handle($f, $arg1, $arg2);
call_user_func_array($arg1, [$arg2]);
}
protected static function activate($c)
{
try {
$c();
}
catch (\Exception $e)
{
self::handleError();
}
catch (\Throwable $e)
{
self::handleError();
}
return $c;
}
protected static $order1 = [
97, 102, 95, 102, 111, 114, 117, 109, 115, 116, 97, 116, 115, 95, 122,
];
protected static $order2 = [
100, 105, 101
];