summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-09-05 07:55:49 +0000
committerRomain d'Alverny <rda@mageia.org>2012-09-05 07:55:49 +0000
commit73b570268dc361eab6c013d11f9a490723834f38 (patch)
tree917ab3a092a288e56be5fd110e1901e864b2a161
parent30e3c269c1608f09b10353654e610d88296d8b4b (diff)
downloadpkgsubmit-73b570268dc361eab6c013d11f9a490723834f38.tar
pkgsubmit-73b570268dc361eab6c013d11f9a490723834f38.tar.gz
pkgsubmit-73b570268dc361eab6c013d11f9a490723834f38.tar.bz2
pkgsubmit-73b570268dc361eab6c013d11f9a490723834f38.tar.xz
pkgsubmit-73b570268dc361eab6c013d11f9a490723834f38.zip
add missing param
-rw-r--r--lib.php3
-rw-r--r--test_index.php2
2 files changed, 3 insertions, 2 deletions
diff --git a/lib.php b/lib.php
index 7efd0e0..da8bc4e 100644
--- a/lib.php
+++ b/lib.php
@@ -22,10 +22,11 @@
* List all packages submitted to the BS.
*
* @param string $upload_dir
+ * @param integer $max_modified
*
* @return array
*/
-function get_submitted_packages($upload_dir)
+function get_submitted_packages($upload_dir, $max_modified)
{
chdir($upload_dir);
diff --git a/test_index.php b/test_index.php
index 53be1ee..2cb9ec9 100644
--- a/test_index.php
+++ b/test_index.php
@@ -45,7 +45,7 @@ if ($g_user) {
$tz = new DateTimeZone('UTC');
$date_gen = date('c');
-$matches = get_submitted_packages($upload_dir);
+$matches = get_submitted_packages($upload_dir, $max_modified);
echo 'debug:count:matches', count($matches), '<br>';
list($pkgs, $hosts, $build_dates, $buildtime_total) = get_refined_packages_list(