Permalink
Browse files

Fix missed gallery_limit_video config value.

  • Loading branch information...
realdigger
realdigger committed Mar 3, 2017
1 parent 5955f81 commit b5e48804fba5070be0a8f04f20550b1bd2994a5b
Showing with 6 additions and 15 deletions.
  1. +2 −0 README.md
  2. +3 −14 install_db.php
  3. 0 LICENSE → license.txt
  4. +1 −1 package-info.xml
@@ -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.
@@ -9,6 +9,7 @@
* Original Developer: RRasco (http://www.smfgarage.com) *
* Copyright 2015 by: Bruno Alves (margarett.pt@gmail.com *
* Copyright 2007-2011 by: SMF Garage (http://www.smfgarage.com) *
* Copyright 2007-2011 by: SMF Garage (http://www.smfgarage.com) *
* RRasco (rrasco@smfgarage.com) *
* phpBB Garage by: Esmond Poynton (esmond.poynton@gmail.com) *
***********************************************************************************
@@ -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.
@@ -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">

0 comments on commit b5e4880

Please sign in to comment.