1. Joachim Werner
  2. yii-ddmedia

Source

yii-ddmedia / views / default / index.php

Diff from to

File views/default/index.php

         <?php foreach($files['dirs'] as $dirPath=>$stats) : ?>
         <?php /* $onclick=""; if(!in_array($stats['name'],array('.', '..'))) */ $onclick=' onclick="selectMedia(\'directory\',\''.$dirPath.'\',\''.$stats['name'].'\');"'; ?>
         <tr class="dirsFilesRows"<?php echo $onclick; ?>>
-            <td class="folder"><?php echo CHtml::image(Yii::app()->baseUrl.'/images/filetypeicons/folder.png',$stats['name']); ?></td>
+            <td class="folder"><?php echo CHtml::image($this->module->assetsUrl.'/filetypeicons/folder.png',$stats['name']); ?></td>
             <td><?php echo CHtml::link($stats['name'],array('index','p'=>urlencode($path.'/'.$stats['name']))); ?></td>
             <td>&ndash;</td>
             <td><?php echo CHtml::encode(Yii::t('main','Directory')); ?></td>