mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 16:26:59 +02:00
A couple of minor fixes
This commit is contained in:
@@ -1038,7 +1038,6 @@ class MarkupQA extends Wire {
|
|||||||
$path = null;
|
$path = null;
|
||||||
|
|
||||||
if($this->isPagePathHooked()) {
|
if($this->isPagePathHooked()) {
|
||||||
$this->warning("page path is hooked");
|
|
||||||
$page = $pages->get($pageID);
|
$page = $pages->get($pageID);
|
||||||
if($page->id) {
|
if($page->id) {
|
||||||
if($language && $language->id) {
|
if($language && $language->id) {
|
||||||
|
@@ -95,7 +95,7 @@ function _checkForTwoFactorAuth(Session $session) {
|
|||||||
*/
|
*/
|
||||||
function _checkForMaxInputVars(WireInput $input) {
|
function _checkForMaxInputVars(WireInput $input) {
|
||||||
$max = (int) ini_get('max_input_vars');
|
$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));
|
$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();
|
$session->removeNotices();
|
||||||
if($content) {} // ignore
|
if($content) {} // ignore
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user