]> git.mxchange.org Git - friendica.git/commitdiff
template was loaded in the wrong place
authorZach Prezkuta <fermion@gmx.com>
Sat, 18 Aug 2012 19:28:49 +0000 (13:28 -0600)
committerZach Prezkuta <fermion@gmx.com>
Sat, 18 Aug 2012 19:28:49 +0000 (13:28 -0600)
database.sql
mod/install.php

index fa4f1bd58b15d92595e74a19e3766aed51dbf079..6ba4921cb744a3db76674075ae30db1a9ce6e272 100644 (file)
@@ -606,7 +606,7 @@ CREATE TABLE IF NOT EXISTS `item_id` (
 -- Table structure for table `locks`
 --
 
-CREATE TABLE `locks` (
+CREATE TABLE IF NOT EXISTS `locks` (
   `id` int(11) NOT NULL AUTO_INCREMENT,
   `name` char(128) NOT NULL,
   `locked` tinyint(1) NOT NULL DEFAULT '0',
index cb21a71ebe9febc903847618a7d2d1d7421a6e4b..4e4631b85f170b323db9cd30ffb3c81b4f20b6c0 100755 (executable)
@@ -60,7 +60,7 @@ function install_post(&$a) {
 
                        return; 
                        break;
-               case 4;
+               case 4:
                        $urlpath = $a->get_path();
                        $dbhost = notags(trim($_POST['dbhost']));
                        $dbuser = notags(trim($_POST['dbuser']));
@@ -155,11 +155,11 @@ function install_content(&$a) {
        }
 
        if(x($a->data,'txt') && strlen($a->data['txt'])) {
-               $tpl = get_markup_template('install.tpl');
                $db_return_text .= manual_config($a);
        }
        
        if ($db_return_text!="") {
+               $tpl = get_markup_template('install.tpl');
                return replace_macros($tpl, array(
                        '$title' => $install_title,
                        '$pass' => "",