Basic multidatabase support. re #40

TODO :
 * Document the new option
 * Handle URL rewriting
 * Handle bookdetail
 * Test the case without fancybox
 * Update the title with database name
This commit is contained in:
Sébastien Lucas 2013-04-04 08:55:58 +02:00
parent 91cf377d95
commit 78b60baebd
2 changed files with 23 additions and 9 deletions

View file

@ -132,6 +132,7 @@ class Data extends Base {
$urlParam = addURLParameter($urlParam, "height", $height);
}
$urlParam = addURLParameter($urlParam, "id", $book->id);
if (!is_null (GetUrlParam (DB))) $urlParam = addURLParameter ($urlParam, DB, GetUrlParam (DB));
return new Link ("fetch.php?" . $urlParam, $mime, $rel, $title);
}
else