[gallery/gallery3] 3e9e6c: Move gallery_ready(), maintenance_mode(), and priv...
GitHub <noreply-9UaJU3cA/F/[email protected]>
| Newsgroups | gmane.comp.web.gallery.cvs |
|---|---|
| Message-ID | <516bc66169826_69767011388296f@hookshot-fe6-pe1-prd.aws.github.net.mail> |
Branch: refs/heads/kohana_3
Home: https://github.com/gallery/gallery3
Commit: 3e9e6c9ade0a362abc9bd8dc49f9d48ad19effd7
https://github.com/gallery/gallery3/commit/3e9e6c9ade0a362abc9bd8dc49f9d48ad19effd7
Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
Date: 2013-04-15 (Mon, 15 Apr 2013)
Changed paths:
M application/bootstrap.php
M index.php
A modules/gallery/classes/Controller.php
A modules/gallery/classes/Gallery/Controller.php
M modules/gallery/classes/Gallery/Controller/Combined.php
M modules/gallery/classes/Gallery/Controller/FileProxy.php
M modules/gallery/classes/Gallery/Controller/Login.php
M modules/gallery/classes/Gallery/Gallery.php
M modules/gallery/classes/Gallery/Hook/GalleryEvent.php
M modules/gallery/classes/Gallery/Theme.php
M modules/rest/classes/Rest/Controller/Rest.php
M modules/user/classes/User/Controller/Password.php
Log Message:
-----------
Move gallery_ready(), maintenance_mode(), and private_gallery() calls to Controller::before().
- add Gallery_Controller which extends Kohana_Controller (so it is inherited by every controller)
- add Controller::before() which calls the three functions above.
- change ALLOW_PRIVATE_GALLERY and ALLOW_MAINTENANCE_MODE to Controller class variables.
- use the newly-changed variables in maintenance_mode() and private_gallery()
instead of ReflectionClass calls.
- remove Gallery::ready() from index.php.
- add "is_admin" parameter to admin-specific routes in bootstrap.
- use "is_admin" to set Theme::$is_admin, and call it later when needed.
- change Theme::load_themes() to use current request, not initial.
- add todo notes for K3 login rerouting.
Commit: e02e69c954fcfa291e574f7445bd349bd999be8b
https://github.com/gallery/gallery3/commit/e02e69c954fcfa291e574f7445bd349bd999be8b
Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
Date: 2013-04-15 (Mon, 15 Apr 2013)
Changed paths:
M application/bootstrap.php
M index.php
A modules/gallery/classes/Controller.php
A modules/gallery/classes/Gallery/Controller.php
M modules/gallery/classes/Gallery/Controller/Combined.php
M modules/gallery/classes/Gallery/Controller/FileProxy.php
M modules/gallery/classes/Gallery/Controller/Login.php
M modules/gallery/classes/Gallery/Gallery.php
M modules/gallery/classes/Gallery/Hook/GalleryEvent.php
M modules/gallery/classes/Gallery/Theme.php
M modules/rest/classes/Rest/Controller/Rest.php
M modules/user/classes/User/Controller/Password.php
Log Message:
-----------
Merge pull request #286 from shadlaws/controller_override
Move gallery_ready(), maintenance_mode(), and private_gallery() calls to Controller::before().
Compare: https://github.com/gallery/gallery3/compare/7ece81c3f2d1...e02e69c954fc
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
__[ g a l l e r y - c h e c k i n s ]_________________________
[ list info/archive --> http://gallery.sf.net/lists.php ]
[ gallery info/FAQ/download --> http://gallery.sf.net ]