diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-27 16:57:38 -0700 | 
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-27 16:57:38 -0700 | 
| commit | 4707a97b826b12958fda6d59d157726b246693cd (patch) | |
| tree | 2e15d54f2749b76250ffc02184053496e066b2b1 /modules/gallery/libraries | |
| parent | 11f08ee4399c62cc1d2c36457a214c6db693db06 (diff) | |
| parent | 76f688a070c7c36eb84dc22b21b165f00440a4a4 (diff) | |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/libraries')
| -rw-r--r-- | modules/gallery/libraries/Theme_View.php | 10 | 
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/gallery/libraries/Theme_View.php b/modules/gallery/libraries/Theme_View.php index 1746f1d2..167f8a8d 100644 --- a/modules/gallery/libraries/Theme_View.php +++ b/modules/gallery/libraries/Theme_View.php @@ -122,16 +122,20 @@ class Theme_View_Core extends View {      $this->_menu("photo");    } -  private function _menu($type) { +  public function thumb_menu($item) { +    $this->_menu("thumb", $item); +  } + +  private function _menu($type, $item=null) {      $menu = Menu::factory("root"); -    call_user_func_array(array("gallery_menu", $type), array(&$menu, $this)); +    call_user_func_array(array("gallery_menu", $type), array(&$menu, $this, $item));      foreach (module::active() as $module) {        if ($module->name == "gallery") {          continue;        }        $class = "{$module->name}_menu";        if (method_exists($class, $type)) { -        call_user_func_array(array($class, $type), array(&$menu, $this)); +        call_user_func_array(array($class, $type), array(&$menu, $this, $item));        }      }  | 
