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.../Form/Element/Button
File: ButtonRecordViewer.php
<?php
[0] Fix | Delete
[1] Fix | Delete
[2] Fix | Delete
namespace Nextend\Framework\Form\Element\Button;
[3] Fix | Delete
[4] Fix | Delete
[5] Fix | Delete
use Nextend\Framework\Asset\Js\Js;
[6] Fix | Delete
use Nextend\Framework\Form\Element\Button;
[7] Fix | Delete
[8] Fix | Delete
class ButtonRecordViewer extends Button {
[9] Fix | Delete
[10] Fix | Delete
public function __construct($insertAt, $name = '', $parameters = array()) {
[11] Fix | Delete
parent::__construct($insertAt, $name, '', n2_('View records'), $parameters);
[12] Fix | Delete
[13] Fix | Delete
[14] Fix | Delete
$this->addClass('n2_field_button--blue');
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
protected function fetchElement() {
[18] Fix | Delete
[19] Fix | Delete
$ajaxRecordUrl = $this->getForm()
[20] Fix | Delete
->createAjaxUrl(array(
[21] Fix | Delete
'generator/recordstable'
[22] Fix | Delete
));
[23] Fix | Delete
Js::addInline('new _N2.FieldRecordViewer(' . json_encode($this->fieldID) . ',' . json_encode($ajaxRecordUrl) . ');');
[24] Fix | Delete
[25] Fix | Delete
[26] Fix | Delete
return parent::fetchElement();
[27] Fix | Delete
}
[28] Fix | Delete
}
[29] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function