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/Select
File: Skin.php
<?php
[0] Fix | Delete
[1] Fix | Delete
[2] Fix | Delete
namespace Nextend\Framework\Form\Element\Select;
[3] Fix | Delete
[4] Fix | Delete
[5] Fix | Delete
use Nextend\Framework\Asset\Js\Js;
[6] Fix | Delete
use Nextend\Framework\Form\Element\Select;
[7] Fix | Delete
[8] Fix | Delete
class Skin extends Select {
[9] Fix | Delete
[10] Fix | Delete
protected $fixed = false;
[11] Fix | Delete
[12] Fix | Delete
protected function fetchElement() {
[13] Fix | Delete
[14] Fix | Delete
$html = parent::fetchElement();
[15] Fix | Delete
[16] Fix | Delete
Js::addInline('new _N2.FormElementSkin("' . $this->fieldID . '", "' . str_replace($this->name, '', $this->fieldID) . '", ' . json_encode($this->options) . ', ' . json_encode($this->fixed) . ');');
[17] Fix | Delete
[18] Fix | Delete
return $html;
[19] Fix | Delete
}
[20] Fix | Delete
[21] Fix | Delete
protected function renderOptions($options) {
[22] Fix | Delete
$html = '';
[23] Fix | Delete
if (!$this->fixed) {
[24] Fix | Delete
$html .= '<option value="0" selected="selected">' . n2_('Choose') . '</option>';
[25] Fix | Delete
}
[26] Fix | Delete
foreach ($options as $value => $option) {
[27] Fix | Delete
$html .= '<option ' . $this->isSelected($value) . ' value="' . $value . '">' . $option['label'] . '</option>';
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
return $html;
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
/**
[34] Fix | Delete
* @param bool $fixed
[35] Fix | Delete
*/
[36] Fix | Delete
public function setFixed($fixed) {
[37] Fix | Delete
$this->fixed = $fixed;
[38] Fix | Delete
}
[39] Fix | Delete
}
[40] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function