if [ -d "$_DATA/pages/$newname" ]; then
printf 'Refresh: %i\r\n' 4
- export ERRORMSG="A location of that name already exists."
+ export ERROR_MSG="A location of that name already exists."
theme_error 400
return 0
elif ! acl_write "$oldname" || ! acl_write "$newname"; then
if [ -d "$_DATA/pages/$newname" ]; then
printf 'Refresh: %i\r\n' 4
- export ERRORMSG="A page of that name already exists at the given location."
+ export ERROR_MSG="A page of that name already exists at the given location."
theme_error 400
return 0
elif [ ! -d "$_DATA/pages/$newlocation" ]; then
printf 'Refresh: %i\r\n' 4
- export ERRORMSG="The given location does not exist."
+ export ERROR_MSG="The given location does not exist."
theme_error 400
return 0
elif ! acl_write "$oldname" || ! acl_write "$newname"; then
REDIRECT ./
elif [ "$action" ]; then
printf 'Refresh: %i\r\n' 4
- export ERRORMSG="Missing parameters."
+ export ERROR_MSG="Missing parameters."
theme_error 400
return 0
fi