Empty commit

This commit is contained in:
Git 2013-02-28 08:00:29 +00:00
parent ac90e0e1a8
commit 0d9c71f563
7 changed files with 9 additions and 15 deletions

View File

@ -682,9 +682,9 @@ public static function can_use_token($Torrent) {
}
public static function has_snatched($TorrentID) {
public static function has_snatched($TorrentID, $AllUsers = false) {
global $DB, $Cache, $LoggedUser;
if (empty($LoggedUser) || !$LoggedUser['ShowSnatched']) {
if (!$AllUsers && (empty($LoggedUser) || !$LoggedUser['ShowSnatched'])) {
return false;
}

View File

@ -114,7 +114,7 @@ public static function render_template ($TemplateName, $Args)
* echo $SavedTemplate; // Output the buffer
* </pre>
*/
static public function parse ($TemplateFile, array $Variables = null, $Buffer = false)
public static function parse ($TemplateFile, array $Variables = null, $Buffer = false)
{
$Template = self::IncludePath . $TemplateFile;
if (file_exists($Template)) {

View File

@ -1,3 +0,0 @@
<?
define('ERROR_EXCEPTION', true);
require('classes/script_start.php');

View File

@ -269,11 +269,11 @@ function compare($X, $Y){
$ShowGroups = !isset($LoggedUser['TorrentGrouping']) || $LoggedUser['TorrentGrouping'] == 0;
$HideTorrents = ($ShowGroups ? '' : ' hidden');
$OldGroupID = 0;
$ReleaseType = 0;
$LastReleaseType = 0;
foreach ($Importances as $Group) {
extract(Torrents::array_group($TorrentList[$Group['GroupID']]));
extract(Torrents::array_group($TorrentList[$Group['GroupID']]), EXTR_OVERWRITE);
$ReleaseType = $Group['ReleaseType'];
if ($GroupID == $OldGroupID && $ReleaseType == $OldReleaseType) {
continue;

View File

@ -4,7 +4,6 @@
$ArtistEvents = LastFM::get_artist_events($ArtistID, $Name);
$Hidden = false;
$Debug->log_var($ArtistEvents);
if ($ArtistEvents === false) { // Something went wrong
echo '<br />An error occurred when retrieving concert info.<br />';
} elseif (!isset($ArtistEvents['events']['event'])) { // No upcoming events

View File

@ -472,11 +472,9 @@ function header_link($SortKey,$DefaultWay="DESC") {
<td<?=($Torrent['Seeders']==0)?' class="r00"':''?>><?=number_format($Torrent['Seeders'])?></td>
<td><?=number_format($Torrent['Leechers'])?></td>
</tr>
<?
}
}
?>
<? } ?>
</table>
<? } ?>
<div class="linkbox"><?=$Pages?></div>
</div>
<? View::show_footer(); ?>

View File

@ -621,7 +621,7 @@
($GroupID, $LoggedUser[ID], $T[Media], $T[Format], $T[Encoding], " .
"$T[Remastered], $T[RemasterYear], $T[RemasterTitle], $T[RemasterRecordLabel], $T[RemasterCatalogueNumber], " .
"$T[Scene], '$HasLog', '$HasCue', '".db_string($InfoHash)."', $NumFiles, '$FileString', '$FilePath', " .
"$TotalSize, '".sqltime()."', $T[TorrentDescription], $LogScore, $T[FreeLeech], $T[FreeLeechType])");
"$TotalSize, '".sqltime()."', $T[TorrentDescription], $LogScore, '$T[FreeLeech]', '$T[FreeLeechType]')");
$Cache->increment('stats_torrent_count');
$TorrentID = $DB->inserted_id();