]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Restructure theme.php to define a class Theme
authorEvan Prodromou <evan@status.net>
Sun, 8 Nov 2009 22:04:46 +0000 (17:04 -0500)
committerEvan Prodromou <evan@status.net>
Sun, 8 Nov 2009 22:04:46 +0000 (17:04 -0500)
commitb7e2e3fd2b7e36f75c810a599334c2ca8abcca55
tree118c594acf287a5582feeba5b7d3c38553ebf4e2
parent321ac38884125f1af9e8f07323f096505d0b2644
Restructure theme.php to define a class Theme

For various reasons, it's nicer to have a class for theme-file paths
and such. So, I've rewritten the code for determining the locations of
theme files to be more OOPy.

I changed all the uses of the two functions in the module (theme_file
and theme_path) to use Theme::file and Theme::path respectively.

I've also removed the code in common.php that require's the module;
using a class means we can autoload it instead.
actions/opensearch.php
classes/Avatar.php
classes/User_group.php
lib/action.php
lib/common.php
lib/htmloutputter.php
lib/noticesection.php
lib/theme.php