Fix request::isAjax function
Merge branch 'master' into dev