Skip to content

Commit

Permalink
API Update code to reflect changes in silverstripe/cms
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Oct 22, 2024
1 parent df82059 commit 8e768ae
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 8e768ae

Please sign in to comment.