Ignore:
Timestamp:
04/12/10 15:07:32 (14 years ago)
Author:
rodsouza
Message:

Ticket #1009 - Correção de problemas no ExpressoDocs? ao exibir algumas imagens.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/filemanager/inc/class.uifilemanager.inc.php

    r2483 r2490  
    591591                        $this->t->set_block('filemanager_list_t','filemanager_footer','filemanager_footer'); 
    592592 
     593                        $this->t->set_var( 'url', $GLOBALS[ 'phpgw' ] -> link( '/filemanager' ) ); 
     594 
    593595                        if($this->numoffiles || $this->cwd) 
    594596                        { 
    595                                 $vars[path]='<input type="hidden" id="currentPath" value="'.$this->path.'">'; 
    596                                 $vars[css]='<link rel="stylesheet" type="text/css" href="filemanager/templates/default/main.css">'; 
    597                                 $vars[css].='<link rel="stylesheet" type="text/css" href="phpgwapi/js/dftree/dftree.css">'; 
     597                                $vars['path']='<input type="hidden" id="currentPath" value="'.$this->path.'">'; 
     598                                $vars['css']='<link rel="stylesheet" type="text/css" href="' . $GLOBALS[ 'phpgw' ] -> link( '/filemanager/templates/default/main.css' ) . '">'; 
     599                                $vars['css'].='<link rel="stylesheet" type="text/css" href="' . $GLOBALS[ 'phpgw' ] -> link( '/phpgwapi/js/dftree/dftree.css' ) . '">'; 
    598600                                $vars[preferences]='<input type="hidden" id="userPreferences" value=\''.serialize($_SESSION['phpgw_info']['user']['preferences']['filemanager']).'\'>'; 
    599601                                // Used for important operations that needs security 
    600602                                for ($key = ""; strlen($key) < 150; $key .= chr(rand(48,95))); 
    601603                                $_SESSION['phpgw_info']['filemanager']['user']['sec_key'] = $key; 
    602                                 $vars[sec_key]='<input type="hidden" id="userKey" value=\''.$key.'\'>'; 
    603                                 $vars[script]='<script>initDrawApi();</script>'; 
     604                                $vars['sec_key']='<input type="hidden" id="userKey" value=\''.$key.'\'>'; 
     605                                $vars['script']='<script>initDrawApi();</script>'; 
    604606                                 
    605                                 $vars[new_button]=$this->toolButton('new','createfile',lang('New...')); 
    606                                 $vars[new_button].='<input type="hidden" id="newfile_or_dir" name="newfile_or_dir" value="" />'; 
     607                                $vars['new_button']=$this->toolButton('new','createfile',lang('New...')); 
     608                                $vars['new_button'].='<input type="hidden" id="newfile_or_dir" name="newfile_or_dir" value="" />'; 
    607609                                 
    608610                                // reload button with this url 
    609                                 $vars[refresh_button]=$this->toolButton('reload','reload',lang('reload')); 
     611                                $vars['refresh_button']=$this->toolButton('reload','reload',lang('reload')); 
    610612 
    611613                                // go up icon when we're not at the top, dont allow to go outside /home = fakebase 
    612614                                if($this->path != '/' && $this->path != $this->bo->fakebase) 
    613615                                { 
    614                                         $vars[tools_button] = $this->toolButton('tools','tools',lang('tools')); 
     616                                        $vars['tools_button'] = $this->toolButton('tools','tools',lang('tools')); 
    615617                                } 
    616618                                else 
    617                                         $vars[tools_button] = ""; 
    618  
    619                                 $vars[toolbar1]=$toolbar; 
     619                                        $vars['tools_button'] = ""; 
     620 
     621                                $vars['toolbar1']=$toolbar; 
    620622 
    621623                                if(count($this->messages)>0)  
     
    628630                                $this->messages = NULL; 
    629631                                 
    630                                 $vars[messages]=$messages; 
     632                                $vars['messages']=$messages; 
    631633 
    632634                                $this->t->set_var($vars); 
Note: See TracChangeset for help on using the changeset viewer.