Rename appData type 'image' to 'screenshot'
This commit is contained in:
committed by
WineHQ
parent
ebb47fedc7
commit
5f6cc94def
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user