aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba/dba_driver.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-07-13 20:18:19 -0700
committerzotlabs <mike@macgirvin.com>2017-07-13 20:18:19 -0700
commit2d119c81a44691773bacd9e545ce49bebd522098 (patch)
treec4f0ccce9224f2952f308bc60917438423d2138e /include/dba/dba_driver.php
parent88bb61018da11207293a2bcbfaef7ce99623e0ba (diff)
downloadvolse-hubzilla-2d119c81a44691773bacd9e545ce49bebd522098.tar.gz
volse-hubzilla-2d119c81a44691773bacd9e545ce49bebd522098.tar.bz2
volse-hubzilla-2d119c81a44691773bacd9e545ce49bebd522098.zip
turn platform name and std_version into config variables
Diffstat (limited to 'include/dba/dba_driver.php')
-rwxr-xr-xinclude/dba/dba_driver.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/dba/dba_driver.php b/include/dba/dba_driver.php
index 4079bcaba..7e925a106 100755
--- a/include/dba/dba_driver.php
+++ b/include/dba/dba_driver.php
@@ -163,8 +163,9 @@ abstract class dba_driver {
}
function get_install_script() {
- if(file_exists('install/' . PLATFORM_NAME . '/' . \DBA::$install_script))
- return 'install/' . PLATFORM_NAME . '/' . \DBA::$install_script;
+ $platform_name = \Zotlabs\Lib\System::get_platform_name();
+ if(file_exists('install/' . $platform_name . '/' . \DBA::$install_script))
+ return 'install/' . $platform_name . '/' . \DBA::$install_script;
return 'install/' . \DBA::$install_script;
}