the main template is something from a far away past

Signed-off-by: emanuele <emanuele45@gmail.com>
template_init doesn't set directly $settings any more, but instead returns an array! YAY!

Signed-off-by: emanuele <emanuele45@gmail.com>
Better loading of language files

Signed-off-by: emanuele <emanuele45@gmail.com>
MVC means that the template shouldn't know anything about cookie

Signed-off-by: emanuele <emanuele45@gmail.com>
And neither about $_GET

Signed-off-by: emanuele <emanuele45@gmail.com>
Playing with the poll results template

Signed-off-by: emanuele <emanuele45@gmail.com>
Let the db-layer tell us the name of the class to instantiate

Signed-off-by: emanuele <emanuele45@gmail.com>
get rid of the character_set in forms and also edit the language character_set is usually not a good idea I think

Signed-off-by: emanuele <emanuele45@gmail.com>
I don't know if we need it or not, but let's just remove that if

Signed-off-by: emanuele <emanuele45@gmail.com>
It's something MySQL-specific as far as I can see, so let's delegate it to MySQL only.

Signed-off-by: emanuele <emanuele45@gmail.com>
Useless files are useless

Signed-off-by: emanuele <emanuele45@gmail.com>
And removed some apparently useless options from the linktree template

Signed-off-by: emanuele <emanuele45@gmail.com>
A simple (probably useless) check

Signed-off-by: emanuele <emanuele45@gmail.com>
avatar_list should always exists (even only empty) - fixes #1221

Signed-off-by: emanuele <emanuele45@gmail.com>
A bit less javascript in profile

Signed-off-by: emanuele <emanuele45@gmail.com>
Yes, I know the markup was broken

Signed-off-by: emanuele <emanuele45@gmail.com>
Some checks on existence of the "avatar" id and if elements are visible only when the radio is selected is useless to select the radio when focusing on the element

Signed-off-by: emanuele <emanuele45@gmail.com>
Another round of changing avatars javascript

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

Template init