pyrocms/pyrocms — pull request #806 by wildlyinaccurate (2011-10-16 15:42:44+00:00)
Title: Cancel/close buttons use active section URI if it is set

Changes the URI of the cancel/close/preview(?) buttons to be the index of the current section, rather than the index of the module. For example if you're in admin/blog/categories/create, the button takes you to admin/blog/categories/index instead of admin/blog.

I'm not sure if using `_ci_cached_vars` is good practice, but I couldn't find any other way of retrieving the active section.