mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 07:10:29 -04:00
Remove unneeded HasTag() method
It was used in APCu search before the DB
This commit is contained in:
parent
989dcab9f0
commit
e5fc21ffd3
1 changed files with 0 additions and 10 deletions
|
@ -1420,16 +1420,6 @@ class Ebook{
|
|||
return null;
|
||||
}
|
||||
|
||||
public function HasTag(string $tag): bool{
|
||||
foreach($this->Tags as $t){
|
||||
if(strtolower($t->UrlName) == strtolower($tag)){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public function IsInCollection(string $collection): bool{
|
||||
foreach($this->CollectionMemberships as $cm){
|
||||
if(strtolower(Formatter::RemoveDiacritics($cm->Collection->Name)) == strtolower(Formatter::RemoveDiacritics($collection))){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue