Version 5.0.13
This commit is contained in:
1 parent
b89858b2ff
commit
5efe744c5f
1407 files changed
+69690
-30177
No files matched your search
@@ -12,11 +12,8 @@ namespace IPS\Output\Plugin;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
|
||||
use Exception;
|
||||
use IPS\Application;
|
||||
use IPS\Data\Cache;
|
||||
use IPS\IPS;
|
||||
use IPS\Member;
|
||||
use IPS\Theme;
|
||||
use function array_pop;
|
||||
use function count;
|
||||
@@ -69,7 +66,11 @@ class Resource
|
||||
return '"../../applications/' . $app . '/interface/' . $data . '"';
|
||||
}
|
||||
|
||||
return '"../resources/' . $app . '_' . $hash . '_' . $name . '"';
|
||||
/* If we're building from install or upgrade, we need to use the relative paths otherwise the theme will use the building site's URL in the static files */
|
||||
if ( $location !== 'admin' )
|
||||
{
|
||||
return '"../resources/' . $app . '_' . $hash . '_' . $name . '"';
|
||||
}
|
||||
}
|
||||
|
||||
return "\\IPS\\Theme::i()->resource( \"{$data}\", \"{$app}\", '{$location}', {$noProtocol} )";
|
||||
|
||||
Reference in new issue
Block a user