Fix option blocked by waf
This commit is contained in:
parent
6859adbbbb
commit
a8cfb55960
1 changed files with 7 additions and 7 deletions
|
|
@ -332,7 +332,7 @@ $manifestjsoncontentdefault .= '{
|
|||
$listofpages = array();
|
||||
|
||||
$algo = '';
|
||||
if (GETPOST('optionpagecontent')) {
|
||||
if (GETPOST('optionpcontent')) {
|
||||
$algo .= 'content';
|
||||
}
|
||||
if (GETPOST('optionmeta')) {
|
||||
|
|
@ -632,7 +632,7 @@ if ($massaction == 'replace' && GETPOST('confirmmassaction', 'alpha') && $userca
|
|||
if ($objectpage->pageurl) {
|
||||
dol_syslog("Replace string into page ".$objectpage->pageurl);
|
||||
|
||||
if (GETPOST('optionpagecontent', 'aZ09')) {
|
||||
if (GETPOST('optionpcontent', 'aZ09')) {
|
||||
$objectpage->content = str_replace($searchkey, $replacestring, $objectpage->content);
|
||||
}
|
||||
if (GETPOST('optionmeta', 'aZ09')) {
|
||||
|
|
@ -5404,7 +5404,7 @@ if ($mode == 'replacesite' || $massaction == 'replace') {
|
|||
print $langs->trans("SearchReplaceInto");
|
||||
print '</div>';
|
||||
print '<div class="tagtd">';
|
||||
print '<input type="checkbox" class="marginleftonly" id="checkboxoptionpagecontent" name="optionpagecontent" value="content"'.((!GETPOSTISSET('buttonreplacesitesearch') || GETPOST('optionpagecontent', 'aZ09')) ? ' checked' : '').'> <label for="checkboxoptionpagecontent" class="tdoverflowmax150onsmartphone inline-block valignmiddle">'.$langs->trans("Content").'</label><br>';
|
||||
print '<input type="checkbox" class="marginleftonly" id="checkboxoptionpcontent" name="optionpcontent" value="content"'.((!GETPOSTISSET('buttonreplacesitesearch') || GETPOST('optionpcontent', 'aZ09')) ? ' checked' : '').'> <label for="checkboxoptionpcontent" class="tdoverflowmax150onsmartphone inline-block valignmiddle">'.$langs->trans("Content").'</label><br>';
|
||||
print '<input type="checkbox" class="marginleftonly" id="checkboxoptionmeta" name="optionmeta" value="meta"'.(GETPOST('optionmeta', 'aZ09') ? ' checked' : '').'> <label for="checkboxoptionmeta" class="tdoverflowmax150onsmartphone inline-block valignmiddle">'.$langs->trans("WEBSITE_PAGENAME").' | '.$langs->trans("Title").' | '.$langs->trans("Description").' | '.$langs->trans("Keywords").'</label><br>';
|
||||
print '<input type="checkbox" class="marginleftonly" id="checkboxoptionsitefiles" name="optionsitefiles" value="sitefiles"'.(GETPOST('optionsitefiles', 'aZ09') ? ' checked' : '').'> <label for="checkboxoptionsitefiles" class="tdoverflowmax150onsmartphone inline-block valignmiddle">'.$langs->trans("GlobalCSSorJS").'</label><br>';
|
||||
print '</div>';
|
||||
|
|
@ -5532,8 +5532,8 @@ if ($mode == 'replacesite' || $massaction == 'replace') {
|
|||
|
||||
$param = 'mode=replacesite&website='.urlencode($website->ref);
|
||||
$param .= '&searchstring='.urlencode($searchkey);
|
||||
if (GETPOST('optionpagecontent')) {
|
||||
$param .= '&optionpagecontent=content';
|
||||
if (GETPOST('optionpcontent')) {
|
||||
$param .= '&optionpcontent=content';
|
||||
}
|
||||
if (GETPOST('optionmeta')) {
|
||||
$param .= '&optionmeta=meta';
|
||||
|
|
@ -5582,7 +5582,7 @@ if ($mode == 'replacesite' || $massaction == 'replace') {
|
|||
if (is_object($answerrecord) && get_class($answerrecord) == 'WebsitePage') {
|
||||
$param = '?mode=replacesite';
|
||||
$param .= '&websiteid='.$website->id;
|
||||
$param .= '&optionpagecontent='.GETPOST('optionpagecontent', 'aZ09');
|
||||
$param .= '&optionpcontent='.GETPOST('optionpcontent', 'aZ09');
|
||||
$param .= '&optionmeta='.GETPOST('optionmeta', 'aZ09');
|
||||
$param .= '&optionsitefiles='.GETPOST('optionsitefiles', 'aZ09');
|
||||
$param .= '&optioncontainertype='.GETPOST('optioncontainertype', 'aZ09');
|
||||
|
|
@ -5727,7 +5727,7 @@ if ($mode == 'replacesite' || $massaction == 'replace') {
|
|||
'@phan-var-force array{type:string} $answerrecord';
|
||||
$param = '?mode=replacesite';
|
||||
$param .= '&websiteid='.$website->id;
|
||||
$param .= '&optionpagecontent='.GETPOST('optionpagecontent', 'aZ09');
|
||||
$param .= '&optionpcontent='.GETPOST('optionpcontent', 'aZ09');
|
||||
$param .= '&optionmeta='.GETPOST('optionmeta', 'aZ09');
|
||||
$param .= '&optionsitefiles='.GETPOST('optionsitefiles', 'aZ09');
|
||||
$param .= '&optioncontainertype='.GETPOST('optioncontainertype', 'aZ09');
|
||||
|
|
|
|||
Loading…
Reference in a new issue