[go: nahoru, domu]

Skip to content

Commit

Permalink
fixed syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Feb 10, 2011
1 parent 9341104 commit 28f2743
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function render($mode, &$renderer, $data) {
$ns = cleanID(getNS($data[3] . ":*"));
$dir = $conf['datadir'] . '/' . str_replace(':', '/', $ns);
$pages = array();
search($pages, $dir, array($this,'search_helper'), array($ns, $this->getConf('apr_namespaces')));
search($pages, $dir, array($this,'_search_helper'), array($ns, $this->getConf('apr_namespaces')));
if(count($pages) == 0) {
$renderer->doc .= '<p class="apr_none">' . $this->getLang('apr_p_none') . '</p>';
return true;
Expand Down Expand Up @@ -112,7 +112,7 @@ function _search_helper(&$data, $base, $file, $type, $lvl, $opts) {
if($type == 'd') { return $this->hlp->in_sub_namespace($valid_ns, $ns . ':' . str_replace('/', ':', $file)); }
if(!preg_match('#\.txt$#', $file)) { return false; }
$id = pathID($ns . $file);
if(!in_namespace($valid_ns, $id)) { return false; }
if(!$this->hlp->in_namespace($valid_ns, $id)) { return false; }
if(auth_quickaclcheck($id) < AUTH_DELETE) { return false; } //insufficent permissions
$meta = p_get_metadata($id);
if($meta['approval'][$meta['last_change']['date']]) {
Expand Down

0 comments on commit 28f2743

Please sign in to comment.