mirror of
https://git.sdbs.cz/sdbs/pile.git
synced 2025-06-07 14:12:17 +00:00
fallback to addressing by tag name in public-facing side
This commit is contained in:
parent
deb0d071bb
commit
c7fc645fde
1 changed files with 3 additions and 0 deletions
|
@ -22,6 +22,9 @@ if (isset($_GET["item"])) {
|
||||||
$docs = $db->listDocs(-1);
|
$docs = $db->listDocs(-1);
|
||||||
} else {
|
} else {
|
||||||
$tag = $db->fetchTag($_GET["tag"]);
|
$tag = $db->fetchTag($_GET["tag"]);
|
||||||
|
if (!$tag) {
|
||||||
|
$tag = $db->findTag($_GET["tag"]);
|
||||||
|
}
|
||||||
$docs = $db->listDocs($tag["ID"]);
|
$docs = $db->listDocs($tag["ID"]);
|
||||||
$tag["Description"] = $pd->text($tag["Description"]);
|
$tag["Description"] = $pd->text($tag["Description"]);
|
||||||
$doc_list_template->tag = $tag;
|
$doc_list_template->tag = $tag;
|
||||||
|
|
Loading…
Add table
Reference in a new issue