Revision 2061
Added by darkviper almost 12 years ago
- wbLinkAbstract::_makeLinkFromTag fix error in built filepath
| 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