diff options
author | Nathan Kinkade <nath@nkinka.de> | 2013-01-16 17:32:36 +0000 |
---|---|---|
committer | Nathan Kinkade <nath@nkinka.de> | 2013-01-16 17:32:36 +0000 |
commit | 0047af90bf4db08b22838e6ded22a7fa70cee98a (patch) | |
tree | 1c6cb658ffac9ae5d00e32668bed1b1bfbf70b5a /modules/g2_import/controllers | |
parent | 77e2e58aeff49477242f789b367def4b08836a47 (diff) | |
parent | 9d684b7b83f0aa026e9d6f06228294f179a3bcaa (diff) |
Manually resolved conflict after recent pull.
Diffstat (limited to 'modules/g2_import/controllers')
-rw-r--r-- | modules/g2_import/controllers/g2.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/g2_import/controllers/g2.php b/modules/g2_import/controllers/g2.php index 6c960893..98eb57f1 100644 --- a/modules/g2_import/controllers/g2.php +++ b/modules/g2_import/controllers/g2.php @@ -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(); } } -}
\ No newline at end of file +} |