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 Nov 4, 2024
1 parent 5abc14d commit a058d24
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 @@ -1518,12 +1510,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 a058d24

Please sign in to comment.