Skip to content

Commit

Permalink
Fix missed gallery_limit_video config value.
Browse files Browse the repository at this point in the history
  • Loading branch information
realdigger committed Mar 3, 2017
1 parent 5955f81 commit b5e4880
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ This is an updated and improved version of the original SMF Garage mod by RRasco
* **Languages:** English
* **Demo:** http://garage.mysmf.net

![smfg2-screenshot](https://cloud.githubusercontent.com/assets/1187218/23567629/a35e97d0-0070-11e7-8f71-df08ad69ee23.png)

## Description

SMF Garage is a Vehicle Management System (VMS) for Simple Machines Forum. This extension adds the capability for users to create a vehicle profile to be a associated with their user profile on an SMF forum.
Expand Down
17 changes: 3 additions & 14 deletions install_db.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]) *
***********************************************************************************
Expand All @@ -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"');
Expand All @@ -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'");
}
Expand Down Expand Up @@ -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 (
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion package-info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<id>RRasco:SMFGarage</id>
<name>SMF Garage</name>
<type>modification</type>
<version>2.3.1</version>
<version>2.3.2</version>

<!-- Installation, the key part of this file. -->
<install for="2.0.9-2.0.99">
Expand Down

0 comments on commit b5e4880

Please sign in to comment.