diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2013-02-02 23:41:53 -0500 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2013-02-02 23:41:53 -0500 |
| commit | 3439eb57006f6973bbcd17c9d2c13b1edf909f52 (patch) | |
| tree | d831061d77269f3b2e1da743c002ea1ef92db79d /modules/g2_import/controllers | |
| parent | dece6dc5a5880c6267431ba3299c5758b38662ee (diff) | |
| parent | 241d7d63a0818a0b8fd9c8d1f1789fadbd5964c5 (diff) | |
Merge branch 'master' of github.com:gallery/gallery3
Diffstat (limited to 'modules/g2_import/controllers')
| -rw-r--r-- | modules/g2_import/controllers/g2.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/g2_import/controllers/g2.php b/modules/g2_import/controllers/g2.php index 3641b342..c9b1d182 100644 --- a/modules/g2_import/controllers/g2.php +++ b/modules/g2_import/controllers/g2.php @@ -46,7 +46,7 @@ class G2_Controller extends Controller { } if (!$id) { - url::redirect("tag_name/$tag_name"); + url::redirect("tag_name/$tag_name", 301); } $tag = ORM::factory("tag")->where("name", "=", $tag_name)->find(); @@ -99,18 +99,18 @@ class G2_Controller extends Controller { // Redirect the user to the new url switch ($resource_type) { case "thumbnail": - url::redirect($item->thumb_url(true)); + url::redirect($item->thumb_url(true), 301); case "resize": - url::redirect($item->resize_url(true)); + url::redirect($item->resize_url(true), 301); case "file": case "full": - url::redirect($item->file_url(true)); + url::redirect($item->file_url(true), 301); case "item": case "album": - url::redirect($item->abs_url()); + url::redirect($item->abs_url(), 301); case "group": case "user": |
