Rename appData type 'image' to 'screenshot'

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-03-10 23:31:47 +00:00
committed by WineHQ
parent ebb47fedc7
commit 5f6cc94def
4 changed files with 14 additions and 22 deletions

View File

@@ -35,7 +35,7 @@ apidb_header("Screenshots");
// regenerate all screenshots
if($aClean['sRegenerate'])
{
$sQuery = "SELECT id FROM appData WHERE type = 'image'";
$sQuery = "SELECT id FROM appData WHERE type = 'screenshot'";
$hResult = query_parameters($sQuery);
while($oRow = mysql_fetch_object($hResult))
{
@@ -64,7 +64,7 @@ if($aClean['iPage'])
$currentPage = $aClean['iPage'];
$ItemsPerPage = min($ItemsPerPage,100);
$totalPages = ceil(getNumberOfImages()/$ItemsPerPage);
$totalPages = ceil(appData::objectGetEntriesCount("all", "screenshot")/$ItemsPerPage);
$currentPage = min($currentPage,$totalPages);
$offset = (($currentPage-1) * $ItemsPerPage);
@@ -100,7 +100,7 @@ echo "</center>";
/* query for all of the Screenshots in assending order */
$Ids = query_parameters("SELECT * from appData
WHERE type = 'image'
WHERE type = 'screenshot'
ORDER BY id ASC LIMIT ?, ?", $offset, $ItemsPerPage);
$c = 1;
echo "<div align=center><table><tr>\n";