summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-06-10 01:23:18 -0700
committerBharat Mediratta <bharat@menalto.com>2009-06-10 01:23:18 -0700
commit73de6eedd9100bf88eed4c8d638f118485869cd3 (patch)
tree76528c361b45ce801b2ff3d7cbb79922390482ea
parentf20bf46868485ba17308fe8e03edcb79077f7e10 (diff)
Rename package -> packager (it's a noun which has verbs on it).
Force a HTTP_HOST so that url::base() works.
-rw-r--r--modules/gallery/controllers/packager.php (renamed from modules/gallery/controllers/package.php)10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/gallery/controllers/package.php b/modules/gallery/controllers/packager.php
index f5146fc8..da0a7983 100644
--- a/modules/gallery/controllers/package.php
+++ b/modules/gallery/controllers/packager.php
@@ -17,12 +17,14 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
-class Package_Controller extends Controller {
- function index() {
- if (PHP_SAPI != 'cli') {
- Kohana::show_404();
+class Packager_Controller extends Controller {
+ function package() {
+ if (PHP_SAPI != "cli") {
+ access::forbidden();
}
+ $_SERVER["HTTP_HOST"] = "example.com";
+
try {
$this->_reset(); // empty and reinstall the standard modules
$this->_dump_database(); // Dump the database