summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-09-05 18:05:14 +0000
committerRomain d'Alverny <rda@mageia.org>2012-09-05 18:05:14 +0000
commit0c1377115e3c6e64b866bdf0cb72ee72b67ec8d1 (patch)
treeecafefe6806778045d0aae6cf7c1b2d3942a6d45
parentf5b5e710aafc4b950f7ea12cc04f98b4bc43d5ce (diff)
downloadpkgsubmit-0c1377115e3c6e64b866bdf0cb72ee72b67ec8d1.tar
pkgsubmit-0c1377115e3c6e64b866bdf0cb72ee72b67ec8d1.tar.gz
pkgsubmit-0c1377115e3c6e64b866bdf0cb72ee72b67ec8d1.tar.bz2
pkgsubmit-0c1377115e3c6e64b866bdf0cb72ee72b67ec8d1.tar.xz
pkgsubmit-0c1377115e3c6e64b866bdf0cb72ee72b67ec8d1.zip
see behaviour on prod server
-rw-r--r--test_index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/test_index.php b/test_index.php
index 31e8369..55ee644 100644
--- a/test_index.php
+++ b/test_index.php
@@ -201,6 +201,7 @@ $tmpl = <<<T
T;
if ($total > 0) {
+ echo getcwd();
foreach ($pkgs as $key => $p) {
if (trim($p['package']) == '') {
continue;
@@ -224,7 +225,8 @@ if ($total > 0) {
$typelink = '/uploads/' . $p['type'] . '/' . $p['path'] . '.youri';
} else {
$typelink = '/uploads/done/' . $p['path'];
- echo $p['path'], ' => ', $typelink, '<br>';
+ echo ".$typelink", ' = ', print_r(is_dir(".$typelink"), true), '<br>';
+
if (!is_dir(".$typelink")) {
$typelink = '';
}