Browse Source

order tags by file size

main
ghost 1 year ago
parent
commit
8cf9905846
  1. 8
      src/Controller/TorrentController.php

8
src/Controller/TorrentController.php

@ -271,12 +271,12 @@ class TorrentController extends AbstractController @@ -271,12 +271,12 @@ class TorrentController extends AbstractController
if (isset($keywords[$keyword]))
{
$keywords[$keyword]++;
$keywords[$keyword] = $keywords[$keyword] + (int) $item['size'];
}
else
{
$keywords[$keyword] = 1;
$keywords[$keyword] = 0;
}
}
}
@ -420,12 +420,12 @@ class TorrentController extends AbstractController @@ -420,12 +420,12 @@ class TorrentController extends AbstractController
if (isset($keywords[$keyword]))
{
$keywords[$keyword]++;
$keywords[$keyword] = $keywords[$keyword] + (int) $item['size'];
}
else
{
$keywords[$keyword] = 1;
$keywords[$keyword] = 0;
}
}
}

Loading…
Cancel
Save