mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 23:30:35 -04:00
Add PropertyFromHttp trait and update codebase to use new pattern
This commit is contained in:
parent
c35c47b793
commit
acb30b897c
47 changed files with 851 additions and 527 deletions
|
@ -46,12 +46,7 @@ function CreateOpdsCollectionFeed(string $name, string $url, string $description
|
|||
|
||||
usort($collections, function($a, $b) use($collator){
|
||||
$result = $collator->compare($a['sortedname'], $b['sortedname']);
|
||||
if($result === false){
|
||||
return 0;
|
||||
}
|
||||
else{
|
||||
return $result;
|
||||
}
|
||||
return $result === false ? 0 : $result;
|
||||
});
|
||||
|
||||
// Create the collections navigation document.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue