Another query out of a controller and 1/-1 look more logical than +/- and another comparison

Signed-off-by: emanuele <emanuele45@gmail.com>
getchBoardsInfo returns an array of boards

Signed-off-by: emanuele <emanuele45@gmail.com>
We have a cound boards function, let's make it more complex and let's use it (and remove count from fetchBoardsInfo)

Signed-off-by: emanuele <emanuele45@gmail.com>
Using fetchBoardsInfo around the code

Signed-off-by: emanuele <emanuele45@gmail.com>
We already have another function that counts boards!

Signed-off-by: emanuele <emanuele45@gmail.com>
Use ORDER BY to ensure boards are in the correct order (I hope I get all the spots the change is needed)

Signed-off-by: emanuele <emanuele45@gmail.com>
Removed a function with the same name and another with the same code (Smiley management)

Signed-off-by: emanuele <emanuele45@gmail.com>
Why add a new icon should use replace?

Signed-off-by: emanuele <emanuele45@gmail.com>
ORDER BY LENGTH should work in MySQL

Signed-off-by: emanuele <emanuele45@gmail.com>
Why use three identifiers when they do the same thing?

Signed-off-by: emanuele <emanuele45@gmail.com>
Forgot to remove an unused replacement

Signed-off-by: emanuele <emanuele45@gmail.com>
Broken file...

Signed-off-by: emanuele <emanuele45@gmail.com>
An useless dot

Signed-off-by: emanuele <emanuele45@gmail.com>
Properly recount topics (and posts) while merging topics - fixes #1193

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #1206 from emanuele45/order_by

Order by