onimamy / tinycimm

Automatically exported from code.google.com/p/tinycimm
0 stars 0 forks source link

Wrong path in resize_asset #27

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Have your codeigniter project into a subdirectory (ex. /myproject/)
2. Open tinycimm 

What is the expected output? What do you see instead?
See the Images

What version of the product are you using? On what operating system?
Windows XP (WAMP System)

Please provide any additional information below.

Change in libraries/tinycimm.php:

$asset->filename = 
$this->config->item('tinycimm_asset_cache_path').$asset->id.'_'.$width.'_'.$heig
ht.'_'.$quality.$asset->extension;

    $asset->resize_filepath = $update ? $asset->filepath : $_SERVER['DOCUMENT_ROOT'].$asset->filename;

For:
    $asset->filename = $this->config->item('tinycimm_asset_cache_path_full').$asset->id.'_'.$width.'_'.$height.'_'.$quality.$asset->extension;

        $asset->resize_filepath = $update ? $asset->filepath : $asset->filename;

Original issue reported on code.google.com by juanpar...@gmail.com on 29 Sep 2010 at 2:28