From: <bh...@us...> - 2009-01-29 02:10:47
|
Revision: 19924 http://gallery.svn.sourceforge.net/gallery/?rev=19924&view=rev Author: bharat Date: 2009-01-29 01:47:28 +0000 (Thu, 29 Jan 2009) Log Message: ----------- Consolidate all our hooks into one file Added Paths: ----------- gallery3/trunk/core/hooks/init_gallery.php Removed Paths: ------------- gallery3/trunk/core/hooks/load_modules.php gallery3/trunk/core/hooks/load_themes.php gallery3/trunk/core/hooks/register_i18n.php Added: gallery3/trunk/core/hooks/init_gallery.php =================================================================== --- gallery3/trunk/core/hooks/init_gallery.php (rev 0) +++ gallery3/trunk/core/hooks/init_gallery.php 2009-01-29 01:47:28 UTC (rev 19924) @@ -0,0 +1,22 @@ +<?php defined("SYSPATH") or die("No direct script access."); +/** + * Gallery - a web based photo album viewer and editor + * Copyright (C) 2000-2008 Bharat Mediratta + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ +Event::add("system.ready", array("I18n", "instance")); +Event::add("system.post_routing", array("theme", "load_themes")); +Event::add("system.ready", array("module", "load_modules")); Property changes on: gallery3/trunk/core/hooks/init_gallery.php ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native Deleted: gallery3/trunk/core/hooks/load_modules.php =================================================================== --- gallery3/trunk/core/hooks/load_modules.php 2009-01-29 01:41:32 UTC (rev 19923) +++ gallery3/trunk/core/hooks/load_modules.php 2009-01-29 01:47:28 UTC (rev 19924) @@ -1,22 +0,0 @@ -<?php defined("SYSPATH") or die("No direct script access."); -/** - * Gallery - a web based photo album viewer and editor - * Copyright (C) 2000-2008 Bharat Mediratta - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -Event::add("system.ready", array("module", "load_modules")); - Deleted: gallery3/trunk/core/hooks/load_themes.php =================================================================== --- gallery3/trunk/core/hooks/load_themes.php 2009-01-29 01:41:32 UTC (rev 19923) +++ gallery3/trunk/core/hooks/load_themes.php 2009-01-29 01:47:28 UTC (rev 19924) @@ -1,21 +0,0 @@ -<?php defined("SYSPATH") or die("No direct script access."); -/** - * Gallery - a web based photo album viewer and editor - * Copyright (C) 2000-2008 Bharat Mediratta - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -Event::add("system.post_routing", array("theme", "load_themes")); Deleted: gallery3/trunk/core/hooks/register_i18n.php =================================================================== --- gallery3/trunk/core/hooks/register_i18n.php 2009-01-29 01:41:32 UTC (rev 19923) +++ gallery3/trunk/core/hooks/register_i18n.php 2009-01-29 01:47:28 UTC (rev 19924) @@ -1,21 +0,0 @@ -<?php defined("SYSPATH") or die("No direct script access."); -/** - * Gallery - a web based photo album viewer and editor - * Copyright (C) 2000-2008 Bharat Mediratta - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ - -Event::add("system.ready", array("I18n", "instance")); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |