diff options
| author | mamouneyya <mamoun.diraneyya@gmail.com> | 2011-03-26 13:15:12 +0200 |
|---|---|---|
| committer | mamouneyya <mamoun.diraneyya@gmail.com> | 2011-03-26 13:15:12 +0200 |
| commit | 9c784a740a6fe5849c465e0ebd2e1a197d281bf9 (patch) | |
| tree | 312cbe8b1a1b1a499521e5cdd6045770efeda5e0 /modules/tag/controllers | |
| parent | 5a966e40831da1d113b126dafb9a2112b637211b (diff) | |
| parent | e4d4a89a1bd54164fb62d95ac62a44957d124e68 (diff) | |
Merge remote-tracking branch 'gallery3/master'
Diffstat (limited to 'modules/tag/controllers')
| -rw-r--r-- | modules/tag/controllers/tag.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/tag/controllers/tag.php b/modules/tag/controllers/tag.php index 7aa038c6..8f885dea 100644 --- a/modules/tag/controllers/tag.php +++ b/modules/tag/controllers/tag.php @@ -19,8 +19,8 @@ */ class Tag_Controller extends Controller { public function __call($function, $args) { - $tag_name = $function; - $tag = ORM::factory("tag")->where("name", "=", $tag_name)->find(); + $tag_id = $function; + $tag = ORM::factory("tag")->where("id", "=", $tag_id)->find(); $page_size = module::get_var("gallery", "page_size", 9); $page = (int) Input::instance()->get("page", "1"); $children_count = $tag->items_count(); |
