summaryrefslogtreecommitdiff
path: root/core/helpers/core_installer.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-03-08 21:21:09 +0000
committerBharat Mediratta <bharat@menalto.com>2009-03-08 21:21:09 +0000
commit72c7fed975ce797da1f33ea82651c5a91ce3957e (patch)
tree4e84359029adcd40e31c3b20031c1096018e50aa /core/helpers/core_installer.php
parent7cbc904be722b493a060e2ad69849344124fbe91 (diff)
Log the user in as admin after running the web installer, and give
them a nice "Welcome to Gallery 3" dialog. The text in there needs a little work but it's a start. In the process, re-build the install.sql using the scaffolding code.
Diffstat (limited to 'core/helpers/core_installer.php')
-rw-r--r--core/helpers/core_installer.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/helpers/core_installer.php b/core/helpers/core_installer.php
index 06cd8d91..5c3b9ff0 100644
--- a/core/helpers/core_installer.php
+++ b/core/helpers/core_installer.php
@@ -82,7 +82,7 @@ class core_installer {
PRIMARY KEY (`id`),
KEY `parent_id` (`parent_id`),
KEY `type` (`type`),
- KEY `random` (`rand_key` DESC))
+ KEY `random` (`rand_key`))
ENGINE=InnoDB DEFAULT CHARSET=utf8;");
$db->query("CREATE TABLE {logs} (
@@ -122,7 +122,7 @@ class core_installer {
PRIMARY KEY (`id`),
UNIQUE KEY(`name`))
ENGINE=InnoDB DEFAULT CHARSET=utf8;");
-
+
$db->query("CREATE TABLE {permissions} (
`id` int(9) NOT NULL auto_increment,
`name` varchar(64) default NULL,
@@ -195,9 +195,9 @@ class core_installer {
access::register_permission("edit", "Edit");
$root = ORM::factory("item");
- $root->type = 'album';
+ $root->type = "album";
$root->title = "Gallery";
- $root->description = "Welcome to your Gallery3";
+ $root->description = "";
$root->left = 1;
$root->right = 2;
$root->parent_id = 0;