Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/smart-sl.../Nextend/Framewor.../Acl
File: Acl.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Nextend\Framework\Acl;
[2] Fix | Delete
[3] Fix | Delete
use Nextend\Framework\Acl\Joomla\JoomlaAcl;
[4] Fix | Delete
use Nextend\Framework\Acl\WordPress\WordPressAcl;
[5] Fix | Delete
use Nextend\Framework\Pattern\MVCHelperTrait;
[6] Fix | Delete
[7] Fix | Delete
class Acl {
[8] Fix | Delete
[9] Fix | Delete
/**
[10] Fix | Delete
* @var AbstractPlatformAcl
[11] Fix | Delete
*/
[12] Fix | Delete
private static $instance;
[13] Fix | Delete
[14] Fix | Delete
public function __construct() {
[15] Fix | Delete
self::$instance = new WordPressAcl();
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
/**
[19] Fix | Delete
* @param $action
[20] Fix | Delete
* @param MVCHelperTrait $MVCHelper
[21] Fix | Delete
*
[22] Fix | Delete
* @return bool
[23] Fix | Delete
*/
[24] Fix | Delete
public static function canDo($action, $MVCHelper) {
[25] Fix | Delete
return self::$instance->authorise($action, $MVCHelper);
[26] Fix | Delete
}
[27] Fix | Delete
}
[28] Fix | Delete
[29] Fix | Delete
new Acl();
[30] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function