mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 08:17:12 +02:00
A couple of minor fixes
This commit is contained in:
@@ -1038,7 +1038,6 @@ class MarkupQA extends Wire {
|
||||
$path = null;
|
||||
|
||||
if($this->isPagePathHooked()) {
|
||||
$this->warning("page path is hooked");
|
||||
$page = $pages->get($pageID);
|
||||
if($page->id) {
|
||||
if($language && $language->id) {
|
||||
|
@@ -95,7 +95,7 @@ function _checkForTwoFactorAuth(Session $session) {
|
||||
*/
|
||||
function _checkForMaxInputVars(WireInput $input) {
|
||||
$max = (int) ini_get('max_input_vars');
|
||||
if($max && count($_POST) >= $max) {
|
||||
if($max && count($_POST, COUNT_RECURSIVE) >= $max) {
|
||||
$input->error(sprintf(__('You have reached PHP’s “max_input_vars” setting of %d — please increase it.'), $max));
|
||||
}
|
||||
}
|
||||
@@ -238,4 +238,3 @@ if($controller && $controller->isAjax()) {
|
||||
$session->removeNotices();
|
||||
if($content) {} // ignore
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user