add compatibility with php8.1 #1452

This commit is contained in:
Diego Najar 2022-09-05 20:08:04 +02:00
parent bda30ee9b0
commit 3a8fa7ab94

View file

@ -121,7 +121,7 @@ function buildPlugins()
// Sort the plugins by the position for the site sidebar
uasort($plugins['siteSidebar'], function ($a, $b) {
return $a->position()>$b->position();
return $a->position() <=> $b->position();
}
);
}