mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Wrap deprecated config with no replacement (#10704)
This commit is contained in:
parent
652281507f
commit
6669d54f59
@ -704,7 +704,9 @@ class Director implements TemplateGlobalProvider
|
|||||||
*/
|
*/
|
||||||
public static function publicDir()
|
public static function publicDir()
|
||||||
{
|
{
|
||||||
$alternate = self::config()->uninherited('alternate_public_dir');
|
$alternate = Deprecation::withNoReplacement(function () {
|
||||||
|
return self::config()->uninherited('alternate_public_dir');
|
||||||
|
});
|
||||||
if (isset($alternate)) {
|
if (isset($alternate)) {
|
||||||
return $alternate;
|
return $alternate;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user