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/Text
File: Url.php
<?php
[0] Fix | Delete
[1] Fix | Delete
[2] Fix | Delete
namespace Nextend\Framework\Form\Element\Text;
[3] Fix | Delete
[4] Fix | Delete
[5] Fix | Delete
use Nextend\Framework\Asset\Js\Js;
[6] Fix | Delete
use Nextend\Framework\Form\Element\AbstractChooserText;
[7] Fix | Delete
use Nextend\Framework\Pattern\MVCHelperTrait;
[8] Fix | Delete
use Nextend\Framework\Platform\Platform;
[9] Fix | Delete
[10] Fix | Delete
class Url extends AbstractChooserText {
[11] Fix | Delete
[12] Fix | Delete
protected function addScript() {
[13] Fix | Delete
Js::addInline("new _N2.FormElementUrl('" . $this->fieldID . "', " . $this->getElementUrlParameters($this->getForm()) . " );");
[14] Fix | Delete
}
[15] Fix | Delete
[16] Fix | Delete
/**
[17] Fix | Delete
* @param MVCHelperTrait $MVCHelper
[18] Fix | Delete
*
[19] Fix | Delete
* @return string
[20] Fix | Delete
*/
[21] Fix | Delete
private function getElementUrlParameters($MVCHelper) {
[22] Fix | Delete
$params = array(
[23] Fix | Delete
'hasPosts' => Platform::hasPosts()
[24] Fix | Delete
);
[25] Fix | Delete
[26] Fix | Delete
$params['url'] = $MVCHelper->createAjaxUrl("content/searchlink");
[27] Fix | Delete
$params['labelButton'] = 'WordPress';
[28] Fix | Delete
$params['labelDescription'] = n2_(/** @lang text */ 'Select a page or a blog post from your WordPress site.');
[29] Fix | Delete
[30] Fix | Delete
return json_encode($params);
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
protected function post() {
[34] Fix | Delete
if (!Platform::hasPosts()) {
[35] Fix | Delete
return '';
[36] Fix | Delete
}
[37] Fix | Delete
[38] Fix | Delete
[39] Fix | Delete
return parent::post();
[40] Fix | Delete
}
[41] Fix | Delete
[42] Fix | Delete
/**
[43] Fix | Delete
* @param int $width
[44] Fix | Delete
*/
[45] Fix | Delete
public function setWidth($width) {
[46] Fix | Delete
$this->width = $width;
[47] Fix | Delete
}
[48] Fix | Delete
[49] Fix | Delete
}
[50] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function