Skip to content

Commit

Permalink
unbreak default width of preview picture on the recording detail screen
Browse files Browse the repository at this point in the history
Closes #10022

Signed-off-by: Gavin Hurlbut <ghurlbut@mythtv.org>
  • Loading branch information
dekarl authored and Beirdo committed Oct 6, 2011
1 parent a518106 commit 5210b89
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions includes/db_update.php
Expand Up @@ -9,7 +9,7 @@
/**/

// What *should* the database version be?
define('WebDBSchemaVer', 2);
define('WebDBSchemaVer', 3);

// What version does the database think it is?
$db_vers = intval(setting('WebDBSchemaVer'));
Expand Down Expand Up @@ -40,8 +40,17 @@
case 1:
setting('WebPrefer_Channum', null, 1, false);
setting('WebDBSchemaVer', null, ++$db_vers, false);
// Add default width for recording details if they have not been set yet
case 2:
$width = intval(setting('WebFLV_w'));
if ($width < 1) {
setting('WebFLV_w', null, 320, false);
} elseif ($width < 160) {
setting('WebFLV_w', null, 160, false);
}
setting('WebDBSchemaVer', null, ++$db_vers, false);
// All other numbers should run their changes sequentially
#case 2:
#case 3:
# # do something to upgrade the database here
# $db_vers++;
}
Expand Down

0 comments on commit 5210b89

Please sign in to comment.