[pLog-svn] r1063 - plog/trunk
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Sun Feb 13 16:32:44 GMT 2005
Author: oscar
Date: 2005-02-13 16:32:44 +0000 (Sun, 13 Feb 2005)
New Revision: 1063
Modified:
plog/trunk/wizard.php
Log:
fixed an issue as reported here: http://forums.plogworld.net/viewtopic.php?p=8235#8235
Modified: plog/trunk/wizard.php
===================================================================
--- plog/trunk/wizard.php 2005-02-13 16:03:11 UTC (rev 1062)
+++ plog/trunk/wizard.php 2005-02-13 16:32:44 UTC (rev 1063)
@@ -1098,8 +1098,7 @@
return false;
}
- $config =& Config::getConfig();
- $dbPrefix = $config->getValue( "db_prefix" );
+ $dbPrefix = Db::getPrefix();
$users = new Users();
$user = new UserInfo( $this->_userName,
@@ -1118,9 +1117,7 @@
}
// we also have to execute the code to give administrator privileges to this user
- $userPerms = "INSERT INTO {dbprefix}users_permissions(user_id,blog_id,permission_id) VALUES(
- $userId, 0, 1 );";
- $query = str_replace( "{dbprefix}", $dbPrefix, $userPerms );
+ $query = "INSERT INTO {$dbPrefix}users_permissions(user_id,blog_id,permission_id) VALUES( $userId, 0, 1 );";
$db->Execute( $query );
$this->_view = new Wizardview( "step4" );
More information about the pLog-svn
mailing list