Fix book search with multidatabase. re #40

This commit is contained in:
Sébastien Lucas 2013-04-08 17:28:45 +02:00
parent ad115f08c3
commit cd03b49954

View file

@ -29,6 +29,7 @@
$query = getURLParam ("query");
$qid = getURLParam ("id");
$n = getURLParam ("n", "1");
$database = GetUrlParam (DB);
$currentPage = Page::getPage ($page, $qid, $query, $n);
$currentPage->InitializeContent ();
@ -176,6 +177,9 @@
<div class="stop">
<input type="hidden" name="current" value="<?php echo $page ?>" />
<input type="hidden" name="page" value="9" />
<?php if (!is_null ($database)) { ?>
<input type="hidden" name="<?php echo DB ?>" value="<?php echo $database ?>" />
<?php } ?>
<input type="text" name="query" />
</div>
</form>