File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ' ];
You can’t perform that action at this time.
0 commit comments