Skip to content

Instantly share code, notes, and snippets.

@tojibon
Last active November 14, 2017 20:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tojibon/f28694dc0923f3272a230d48b89ab535 to your computer and use it in GitHub Desktop.
Save tojibon/f28694dc0923f3272a230d48b89ab535 to your computer and use it in GitHub Desktop.
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