@@ 316-328 (lines=13) @@ | ||
313 | * |
|
314 | * @return string path with top levels removed |
|
315 | */ |
|
316 | public function sanitizePath($path) |
|
317 | { |
|
318 | $path = str_replace( |
|
319 | array( |
|
320 | '\\', |
|
321 | \XoopsBaseConfig::get('root-path'), |
|
322 | str_replace('\\', '/', realpath(\XoopsBaseConfig::get('root-path'))) |
|
323 | ), |
|
324 | array('/', '', ''), |
|
325 | $path |
|
326 | ); |
|
327 | return $path; |
|
328 | } |
|
329 | ||
330 | /** |
|
331 | * Enable logger output rendering |
@@ 329-337 (lines=9) @@ | ||
326 | * |
|
327 | * @return string path with top levels removed |
|
328 | */ |
|
329 | public function sanitizePath($path) |
|
330 | { |
|
331 | $path = str_replace( |
|
332 | array('\\', \XoopsBaseConfig::get('root-path'), str_replace('\\', '/', realpath(\XoopsBaseConfig::get('root-path')))), |
|
333 | array('/', '', ''), |
|
334 | $path |
|
335 | ); |
|
336 | return $path; |
|
337 | } |
|
338 | ||
339 | /** |
|
340 | * PSR-3 System is unusable. |