Skip to content

Commit

Permalink
Большая вероятность коллизий
Browse files Browse the repository at this point in the history
  • Loading branch information
AgelxNash committed Aug 25, 2013
1 parent 1fc2097 commit b56a6e6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,7 @@ public function relativeSrcPath(){
$assets = ltrim($this->_config['assetsUrl'],'/');
$imgDir = $this->_config['imagesFolder'];

$this->_config['relativePath'] = preg_replace("#^({$full_assets}|(/)?{$assets})?#", '', $this->_pathinfo('dirname'));
$this->_config['relativePath'] = preg_replace("#^(/)?{$imgDir}(/)?#","",$this->_config['relativePath']);
$this->_config['relativePath'] = preg_replace("#^({$full_assets}|(/)?{$assets})(/)?{$imgDir}(/)?#", '', $this->_pathinfo('dirname'));
}else{
if($this->_flag = file_exists($this->_config['noimage'])){
$this->_config['input'] = $this->_config['noimage'];
Expand Down

0 comments on commit b56a6e6

Please sign in to comment.