login/pass: error messages below page title
[minimedit.git] / article.inc.php
index 8e121d36196705ceeed56f2d17e1c1df73914308..093852f96753e712014e0f07961f6c8a34cb8552 100644 (file)
@@ -48,7 +48,7 @@ class ArchiveArticle
                $this->path = '';
                $this->restricted = FALSE;
                while (TRUE) {
-                       if (file_exists("$path/.private")) {
+                       if (file_exists("$path/.private") and !$this->restricted) {
                                $this->restricted = $path;
                        }
 
@@ -187,7 +187,7 @@ class ArchiveArticle
                else {
                        foreach (explode(' ', $params) as $param) {
                                if ($set = strpos($param, '=')) {
-                                       $Page->place[ substr($param, 0, $set) ] = substr($param, $set + 1);
+                                       $Page->place[ substr($param, 0, $set) ] = urldecode(substr($param, $set + 1));
                                }
                                elseif (!empty($param)) {
                                        $Page->place[] = $param;