Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CakePHP 3.5.x vs Croogo 3.0.x Can't activate Croogo/Core theme fix

Find Line Around - 51:

if (is_callable($callable)) {
    return call_user_func_array($callable, $request->params['pass']);
}

Replace:

if (is_callable($callable) && $request->params['action'] === 'activate' && is_array($request->params['pass'])) {
    return call_user_func_array($callable, [join('/',  $request->params['pass'])]);
} else if (is_callable($callable)) {
    return call_user_func_array($callable, $request->params['pass']);
}

Make this below method to return true by force! Ex: return true;

protected function _validatePost(Controller $controller)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment