Dotclear

Changeset 521


Ignore:
Timestamp:
10/13/08 03:15:45 (15 years ago)
Author:
Moe
google:author:
appears
Message:

Public Media 1.1.3 :

  • fixed bug with directory URL when a page root is defined
  • everything should be ok now
Location:
plugins/publicMedia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/publicMedia/_define.php

    r520 r521  
    2626     /* Description*/                "Display media on a public page or in a widget", 
    2727     /* Author */                    "Moe (http://gniark.net/), Osku and Tomtom (http://blog.zenstyle.fr)", 
    28      /* Version */                   '1.1.2', 
     28     /* Version */                   '1.1.3', 
    2929     /* Permissions */               'admin' 
    3030); 
  • plugins/publicMedia/_public.php

    r520 r521  
    7575                    $dirs = explode('/',$_ctx->mediaPage_currentDir); 
    7676                    $path = ''; 
    77                     //die('<pre>'.print_r($dirs,true).'</pre>'); 
     77                     
    7878                    foreach ($dirs as $dir) 
    7979                    { 
     
    135135                         $item->relname = 
    136136                              substr($item->relname,$page_root_len); 
     137                         if (substr($item->relname,0,1) == '/') 
     138                         { 
     139                              // ugly but works 
     140                              $item->relname = substr($item->relname,1); 
     141                         } 
    137142                         # parent directory 
    138143                         if ($item->file == $parent_dir_full_path) 
Note: See TracChangeset for help on using the changeset viewer.

Sites map