Ignore:
Timestamp:
09/19/06 19:35:56 (13 years ago)
Author:
ray
Message:

ExtendedFileManager? updates:

*to complete cofigurability through js directories can now be set for images and files individually (optional & backwards compatible)

  • relocated button from the end of toolbar next to createlink
  • insert image/link with double click
  • preview img didn't have src when no image selected, which showed a "image not found icon" in IE
  • slight modifications and updates in Readme.txt (kicked out afru's website. The domain isn't even registered anymore)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/ExtendedFileManager/Classes/ExtendedFileManager.php

    r524 r579  
    5454        function getImagesDir() 
    5555        { 
    56                 Return $this->config['images_dir']; 
     56                if ($this->mode == 'link' && isset($this->config['files_dir'])) 
     57                        Return $this->config['files_dir']; 
     58                else Return $this->config['images_dir']; 
    5759        } 
    5860 
     
    6365        function getImagesURL() 
    6466        { 
    65                 Return $this->config['images_url']; 
     67                if ($this->mode == 'link' && isset($this->config['files_url'])) 
     68                                Return $this->config['files_url']; 
     69                else Return $this->config['images_url']; 
    6670        } 
    6771 
     
    657661                //well, no thumbnail was found, so ask the thumbs.php 
    658662                //to generate the thumbnail on the fly. 
    659                 Return $IMConfig['backend_url'] . '__function=thumbs&img='.rawurlencode($relative); 
     663                Return $IMConfig['backend_url'] . '__function=thumbs&img='.rawurlencode($relative)."&mode=$this->mode"; 
    660664        } 
    661665 
Note: See TracChangeset for help on using the changeset viewer.