Changeset 482

Show
Ignore:
Timestamp:
02/18/08 21:20:27 (11 months ago)
Author:
padams
Message:

added fix for trying to load the Dashboard report view directly insteaod of via it's controller.

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/module.inc

    r479 r482  
    6565                 
    6666                // Public folder URL 
    67                 define('OWA_PUBLIC_URL', $gallery_base_url.'/modules/owa/public/'); 
     67                define('OWA_PUBLIC_URL', $gallery_base_url.'modules/owa/public/'); 
    6868                 
    6969                // Gallery specific config overrides array 
    7070                 
    71                 $owa_config['report_wrapper'] = 'wrapper_gallery.tpl'; 
     71                $owa_config['report_wrapper'] = 'wrapper_gallery2.tpl'; 
    7272                $owa_config['images_url'] = OWA_PUBLIC_URL.'i/'; 
    7373                $owa_config['images_absolute_url'] = $owa_config['images_url']; 
     
    8686                // create owa instance 
    8787                $owa = new owa_php($owa_config); 
    88 $gallery->debug('hello from owa after'); 
     88                $gallery->debug('new owa instance created'); 
    8989                 
    9090                return $owa; 
     
    373373                 
    374374                $params = array(); 
    375                 $params['view'] = 'base.report'; 
    376                 $params['subview'] = 'base.reportDashboard';  
     375                //$params['view'] = 'base.report'; 
     376                $params['action'] = 'base.reportDashboard';  
    377377                $params['period'] = 'today';       
    378378                $page = $owa->handleRequest($params); 
     
    410410} 
    411411 
     412 
     413GalleryCoreApi::requireOnce('modules/core/classes/GalleryController.class'); 
    412414class owaControlController extends GalleryController { 
    413415 
     
    447449        function renderImmediate($status, $error) { 
    448450         
     451                global $gallery; 
    449452                $owa = owa_factory(); 
    450453                 
     454                $gallery->debug('hello from owaAction'); 
    451455                owa_set_priviledges(); 
    452456                 
  • trunk/modules/base/reportDashboard.php

    r438 r482  
    5757                $data = array(); 
    5858                $data['params'] = $this->params; 
    59                  
     59                                 
    6060                switch ($this->params['period']) { 
    6161