| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | protected function _hashInternalEntryLinks($string) |
||
| 46 | { |
||
| 47 | $server = $this->_settings->get('server'); |
||
| 48 | $webroot = $this->_settings->get('webroot'); |
||
| 49 | $hashBaseUrl = $this->_settings->get('hashBaseUrl'); |
||
| 50 | $url = $server . $webroot . $hashBaseUrl; |
||
| 51 | $string = preg_replace( |
||
| 52 | "% |
||
| 53 | (?<!=) # don't hash if part of [url=… |
||
| 54 | {$url} |
||
| 55 | (\d+) # the id |
||
| 56 | %imx", |
||
| 57 | "#\\1", |
||
| 58 | $string |
||
| 59 | ); |
||
| 60 | |||
| 61 | return $string; |
||
| 62 | } |
||
| 64 |