From ca0744c0df9325a0f1cd6a1e7dd9cb4797a2a0a8 Mon Sep 17 00:00:00 2001 From: Robin Appelman <icewind1991@gmail.com> Date: Tue, 1 Jun 2010 13:57:28 +0200 Subject: [PATCH] notify the user if sqlite isn't installed during the first dialog --- inc/templates/adminform.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inc/templates/adminform.php b/inc/templates/adminform.php index be63c0cc6c..8d34832e71 100755 --- a/inc/templates/adminform.php +++ b/inc/templates/adminform.php @@ -71,7 +71,11 @@ if($FIRSTRUN){?> <tr><td>enable automatic backup:</td><td><input type="checkbox" name="enablebackup" id="enablebackup" onchange='showBackupPath()' size="30" class="formstyle" value='1' <?php if($CONFIG_ENABLEBACKUP) echo 'checked'?>></input></td></tr> <tr id='backupdir'><td>backup directory:</td><td><input type="text" name="backupdirectory" size="30" class="formstyle" value="<?php echo($CONFIG_BACKUPDIRECTORY);?>"></input></td></tr> <tr><td>date format:</td><td><input type="text" name="dateformat" size="30" class="formstyle" value='<?php echo($CONFIG_DATEFORMAT);?>'></input></td></tr> -<?php if($FIRSTRUN){?> +<?php if($FIRSTRUN){ + if(!is_callable('sqlite_open')){ + echo '<tr><td colspan="2">No SQLite support detected, make sure you have both sqlite and the sqlite php module installed (sqlite and php5-sqlite for Debian/Ubuntu)</td></tr>'; + } +?> <tr><td>database type:</td><td> <select id='dbtype' name="dbtype" onchange='dbtypechange()'> <?php -- GitLab