Tags by name (includes a G2 mapping)

This commit is contained in:
Mike Miller
2013-01-13 05:36:50 +02:00
parent 3a3c21dfc4
commit f92982c59c
3 changed files with 55 additions and 3 deletions
+6 -1
View File
@@ -34,6 +34,11 @@ class G2_Controller extends Controller {
$path = $input->get("path");
$id = $input->get("g2_itemId");
/* Tags are handled specially, since there's no mapping for them */
if (($path && 0 === strpos($path, "tag/"))) {
url::redirect("tag_name/" . substr($path, 4));
}
if (($path && $path != 'index.php' && $path != 'main.php') || $id) {
if ($id) {
// Requests by id are either core.DownloadItem or core.ShowItem requests. Later versions of
@@ -94,4 +99,4 @@ class G2_Controller extends Controller {
throw new Kohana_404_Exception();
}
}
}
}