forked from rrasco09/smfgarage
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missed gallery_limit_video config value.
- Loading branch information
realdigger
committed
Mar 3, 2017
1 parent
5955f81
commit b5e4880
Showing
4 changed files
with
6 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
* Original Developer: RRasco (http://www.smfgarage.com) * | ||
* Copyright 2015 by: Bruno Alves ([email protected] * | ||
* Copyright 2007-2011 by: SMF Garage (http://www.smfgarage.com) * | ||
* Copyright 2007-2011 by: SMF Garage (http://www.smfgarage.com) * | ||
* RRasco ([email protected]) * | ||
* phpBB Garage by: Esmond Poynton ([email protected]) * | ||
*********************************************************************************** | ||
|
@@ -17,7 +18,7 @@ | |
**********************************************************************************/ | ||
|
||
// Set install version | ||
$install_version = "2.3"; | ||
$install_version = "2.3.2"; | ||
|
||
// Check for config table in database | ||
$request = $smcFunc['db_query']('', 'SHOW TABLES LIKE "{db_prefix}garage_config"'); | ||
|
@@ -38,20 +39,7 @@ | |
function upgrade_smfg_db($install_version, $version) | ||
{ | ||
global $smcFunc; | ||
|
||
// Upgrade to 0.5.3a from 0.5.2a -- removed | ||
|
||
// Upgrade to 0.6.0b from 0.5.3a -- removed | ||
|
||
// Upgrade to 0.6.0b2 from 0.6.0b -- removed | ||
|
||
// Upgrade to RC1 from 0.6.0b2 -- removed | ||
|
||
// Upgrade to 2.0 from 0.6.0RC1 -- removed | ||
|
||
// Upgrade to 2.1 from 2.0 -- removed | ||
|
||
// Upgrade from 2.1 to 2.3 | ||
if(version_compare($version, $install_version, "<")) { | ||
$smcFunc['db_query']('', "UPDATE {db_prefix}garage_config SET config_value = '".$install_version."' WHERE config_name = 'version'"); | ||
} | ||
|
@@ -287,6 +275,7 @@ function install_smfg_db($install_version) | |
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('pending_subject', 'New Items Pending in the Garage')"); | ||
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('enable_modification_approval', '')"); | ||
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('pending_sender', '1')"); | ||
$smcFunc['db_query']('', "INSERT INTO {db_prefix}garage_config VALUES ('gallery_limit_video', '5')"); | ||
|
||
// currency | ||
$smcFunc['db_query']('', "CREATE TABLE IF NOT EXISTS {db_prefix}garage_currency ( | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters