Changeset 521
- Timestamp:
- 10/13/08 03:15:45 (15 years ago)
- google:author:
- appears
- Location:
- plugins/publicMedia
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/publicMedia/_define.php
r520 r521 26 26 /* Description*/ "Display media on a public page or in a widget", 27 27 /* Author */ "Moe (http://gniark.net/), Osku and Tomtom (http://blog.zenstyle.fr)", 28 /* Version */ '1.1. 2',28 /* Version */ '1.1.3', 29 29 /* Permissions */ 'admin' 30 30 ); -
plugins/publicMedia/_public.php
r520 r521 75 75 $dirs = explode('/',$_ctx->mediaPage_currentDir); 76 76 $path = ''; 77 //die('<pre>'.print_r($dirs,true).'</pre>');77 78 78 foreach ($dirs as $dir) 79 79 { … … 135 135 $item->relname = 136 136 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 } 137 142 # parent directory 138 143 if ($item->file == $parent_dir_full_path)
Note: See TracChangeset
for help on using the changeset viewer.