aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/install.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-27 13:31:07 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-27 13:31:07 +0000
commitafa65955326919c7a29e9a6bff5c8e812c77988a (patch)
tree40b7a1caf58a7f9a490d267c88d14a3415fc8df3 /engine/lib/install.php
parentad477373525719a9ee26655f4fd14ebd677de20e (diff)
downloadelgg-afa65955326919c7a29e9a6bff5c8e812c77988a.tar.gz
elgg-afa65955326919c7a29e9a6bff5c8e812c77988a.tar.bz2
Db installed flag on config, Refs #101
git-svn-id: https://code.elgg.org/elgg/trunk@1179 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/install.php')
-rw-r--r--engine/lib/install.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/engine/lib/install.php b/engine/lib/install.php
index b348ab9b2..ca615c473 100644
--- a/engine/lib/install.php
+++ b/engine/lib/install.php
@@ -17,12 +17,21 @@
*
* @return true|false Whether the database has been installed
*/
- function is_db_installed() {
+ function is_db_installed() {
+
+ global $CONFIG;
+
+ if (isset($CONFIG->db_installed)) {
+ return $CONFIG->db_installed;
+ }
$tables = get_db_tables();
if (!$tables) {
return false;
- }
+ }
+
+ $CONFIG->db_installed = true; // Set flag if db is installed (if false then we want to check every time)
+
return true;
}