Moar Debug Output
This commit is contained in:
parent
0767d38311
commit
11c034bb88
1 changed files with 2 additions and 1 deletions
|
@ -46,7 +46,6 @@ if (isset($_GET['f'])) {
|
||||||
if ($_GET['f'] != '') {
|
if ($_GET['f'] != '') {
|
||||||
$t = array('(' => '\(', ')' => '\)');
|
$t = array('(' => '\(', ')' => '\)');
|
||||||
$f = strtr($_GET['f'], $t);
|
$f = strtr($_GET['f'], $t);
|
||||||
error_log('----------'.$f.'----------');
|
|
||||||
$files = array_values(preg_grep('/.*'.$f.'.*/i', $files));
|
$files = array_values(preg_grep('/.*'.$f.'.*/i', $files));
|
||||||
$filter='&f='.$_GET['f'];
|
$filter='&f='.$_GET['f'];
|
||||||
}
|
}
|
||||||
|
@ -59,6 +58,8 @@ $files = array_reverse($files);
|
||||||
// Get Files for current Page
|
// Get Files for current Page
|
||||||
$curfiles = array_slice($files, ($page-1)*$slice ,$slice, true);
|
$curfiles = array_slice($files, ($page-1)*$slice ,$slice, true);
|
||||||
|
|
||||||
|
print_r($curfiles);
|
||||||
|
|
||||||
// Prepare Generic Data for Template
|
// Prepare Generic Data for Template
|
||||||
$data['dir'] = $dir;
|
$data['dir'] = $dir;
|
||||||
$data['slice'] = $slice;
|
$data['slice'] = $slice;
|
||||||
|
|
Loading…
Reference in a new issue