Skip to content

Commit 3e55861

Browse files
committed
code cleanup
1 parent 59cea8d commit 3e55861

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

conf/default.php

+2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<?php
2+
23
/**
34
* Default settings for the simplenavi plugin
45
*/
6+
57
$conf['natsort'] = 1;
68
$conf['nsfirst'] = 1;
79
$conf['usetitle'] = 1;

conf/metadata.php

+2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<?php
2+
23
/**
34
* Options for the simplenavi plugin
45
*/
6+
57
$meta['natsort'] = array('onoff');
68
$meta['nsfirst'] = array('onoff');
79
$meta['usetitle'] = array('onoff');

syntax.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,10 @@ public function cbSearch(&$data, $base, $file, $type, $lvl, $opts)
244244
$id = pathID($file);
245245

246246
if (
247-
$type == 'd' && !(
248-
preg_match('#^' . $id . '(:|$)#', $opts['currentID']) ||
249-
preg_match('#^' . $id . '(:|$)#', getNS($opts['currentID']))
250-
247+
$type == 'd' &&
248+
(
249+
!preg_match('#^' . $id . '(:|$)#', $opts['currentID']) &&
250+
!preg_match('#^' . $id . '(:|$)#', getNS($opts['currentID']))
251251
)
252252
) {
253253
//add but don't recurse

0 commit comments

Comments
 (0)