Skip to content

Commit 560ed75

Browse files
committed
[FIX] Content processor.
1 parent 60c8327 commit 560ed75

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

manager/processors/save_content.processor.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<?php
2-
if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
2+
if(!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
33
die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly.");
44
}
55
$modx = EvolutionCMS();
6-
if (!$modx->hasPermission('save_document')) {
7-
$modx->webAlertAndQuit($_lang["error_no_privileges"]);
6+
if (!evo()->hasPermission('save_document')) {
7+
evo()->webAlertAndQuit(__("global.error_no_privileges"));
88
}
99

1010
// preprocess POST values
1111
$id = is_numeric($_POST['id']) ? $_POST['id'] : '';
1212

13-
$introtext = $_POST['introtext'];
14-
$content = $_POST['ta'];
15-
$pagetitle = $_POST['pagetitle'];
16-
$description = $_POST['description'];
13+
$introtext = $_POST['introtext'] ?? '';
14+
$content = $_POST['ta'] ?? '';
15+
$pagetitle = $_POST['pagetitle'] ?? '';
16+
$description = $_POST['description'] ?? '';
1717
$alias = $_POST['alias'];
1818
$link_attributes = $_POST['link_attributes'];
1919
$isfolder = (int)$_POST['isfolder'];

0 commit comments

Comments
 (0)