Project

General

Profile

« Previous | Next » 

Revision 2061

Added by darkviper almost 11 years ago

  1. wbLinkAbstract::_makeLinkFromTag fix error in built filepath

View differences:

branches/2.8.x/wb/framework/WbLinkAbstract.php
119 119
			 . 'WHERE `'.$this::FIELDNAME_ITEM_ID.'`='.$aReplacement['item'];
120 120
		if (($sLink = $this->oDb->get_one($sql))) {
121 121
			$sLink     = trim(str_replace('\\', '/', $sLink), '/');
122
			$sBasePath = trim(str_replace('\\', '/', $sBasePath), '/').'/';
122
			$sBasePath = rtrim(str_replace('\\', '/', $sBasePath), '/').'/';
123 123
		// test if valid accessfile is available
124 124
			$sFilePath = $sBasePath.$sLink.$this->oReg->PageExtension;
125 125
			if (is_readable($sFilePath)) {

Also available in: Unified diff