From 8e768ae597e0a673e620023f4c95e7f9c91c14f4 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Tue, 22 Oct 2024 15:32:37 +1300 Subject: [PATCH] API Update code to reflect changes in silverstripe/cms --- src/File.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/File.php b/src/File.php index 03fca21b..5a0a71eb 100644 --- a/src/File.php +++ b/src/File.php @@ -351,14 +351,6 @@ public function AbsoluteLink() return $this->getAbsoluteURL(); } - /** - * @return string - */ - public function getTreeTitle() - { - return Convert::raw2xml($this->Title); - } - /** * @param Member $member * @return bool @@ -1520,12 +1512,12 @@ protected function filterFilename($name) }, $parts ?? [])); } - public function flushCache($persistent = true) + public function flushCache(bool $persistent = true): static { - parent::flushCache($persistent); static::reset(); ImageShortcodeProvider::flush(); FileShortcodeProvider::flush(); + return parent::flushCache($persistent); } public static function reset()