solved bug found by Ken ("book" selects inbook, book, bookchapter)
This commit is contained in:
+8
-1
@@ -1608,6 +1608,7 @@ function query2title(&$query) {
|
|||||||
$headers = array();
|
$headers = array();
|
||||||
foreach($query as $k=>$v) {
|
foreach($query as $k=>$v) {
|
||||||
if($k == '_author') { $k = 'author'; }
|
if($k == '_author') { $k = 'author'; }
|
||||||
|
if($k == 'type') { $v = substr($v,1,strlen($v)-2); }
|
||||||
$headers[$k] = ucwords($k).': '.ucwords($v);
|
$headers[$k] = ucwords($k).': '.ucwords($v);
|
||||||
}
|
}
|
||||||
// special cases
|
// special cases
|
||||||
@@ -2561,7 +2562,13 @@ class Dispatcher {
|
|||||||
$this->query['_author']=$_GET[Q_AUTHOR];
|
$this->query['_author']=$_GET[Q_AUTHOR];
|
||||||
}
|
}
|
||||||
|
|
||||||
function type() { $this->query[Q_TYPE]=$_GET[Q_TYPE]; }
|
function type() {
|
||||||
|
// remarks KEN
|
||||||
|
// "book" selects inbook, book, bookchapter
|
||||||
|
// so we add the regexp modifiers
|
||||||
|
if (strlen($_GET[Q_TYPE])>0) { $_GET[Q_TYPE] = '^'.$_GET[Q_TYPE].'$'; }
|
||||||
|
$this->query[Q_TYPE]= $_GET[Q_TYPE];
|
||||||
|
}
|
||||||
|
|
||||||
function menu() {
|
function menu() {
|
||||||
$menu = new MenuManager($_GET[Q_DB]);
|
$menu = new MenuManager($_GET[Q_DB]);
|
||||||
|
|||||||
Reference in New Issue
Block a user