@@ -225,7 +225,13 @@ public function processReport()
225
225
*/
226
226
public function getViewFileUrl ()
227
227
{
228
- return $ this ->getBaseUrl () . self ::ERROR_DIR . '/ ' . $ this ->_config ->skin . '/ ' ;
228
+ //The url needs to be updated base on Document root path.
229
+ return $ this ->getBaseUrl () .
230
+ str_replace (
231
+ str_replace ('\\' , '/ ' , $ this ->_indexDir ),
232
+ '' ,
233
+ str_replace ('\\' , '/ ' , $ this ->_errorDir )
234
+ ) . $ this ->_config ->skin . '/ ' ;
229
235
}
230
236
231
237
/**
@@ -385,11 +391,6 @@ protected function _renderPage($template)
385
391
protected function _getFilePath ($ file , $ directories = null )
386
392
{
387
393
if (is_null ($ directories )) {
388
- $ directories = [];
389
-
390
- if (!$ this ->_root ) {
391
- $ directories [] = $ this ->_indexDir . self ::ERROR_DIR . '/ ' ;
392
- }
393
394
$ directories [] = $ this ->_errorDir ;
394
395
}
395
396
@@ -408,16 +409,6 @@ protected function _getFilePath($file, $directories = null)
408
409
*/
409
410
protected function _getTemplatePath ($ template )
410
411
{
411
- $ directories = [];
412
-
413
- if (!$ this ->_root ) {
414
- $ directories [] = $ this ->_indexDir . self ::ERROR_DIR . '/ ' . $ this ->_config ->skin . '/ ' ;
415
-
416
- if ($ this ->_config ->skin != self ::DEFAULT_SKIN ) {
417
- $ directories [] = $ this ->_indexDir . self ::ERROR_DIR . '/ ' . self ::DEFAULT_SKIN . '/ ' ;
418
- }
419
- }
420
-
421
412
$ directories [] = $ this ->_errorDir . $ this ->_config ->skin . '/ ' ;
422
413
423
414
if ($ this ->_config ->skin != self ::DEFAULT_SKIN ) {
0 commit comments