summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-11-08 17:04:46 -0500
committerEvan Prodromou <evan@status.net>2009-11-08 17:04:46 -0500
commitb7e2e3fd2b7e36f75c810a599334c2ca8abcca55 (patch)
tree118c594acf287a5582feeba5b7d3c38553ebf4e2 /actions
parent321ac38884125f1af9e8f07323f096505d0b2644 (diff)
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.
Diffstat (limited to 'actions')
-rw-r--r--actions/opensearch.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/opensearch.php b/actions/opensearch.php
index d5e6698f3..861b53d7d 100644
--- a/actions/opensearch.php
+++ b/actions/opensearch.php
@@ -75,7 +75,7 @@ class OpensearchAction extends Action
$this->element('Url', array('type' => 'text/html', 'method' => 'get',
'template' => str_replace('---', '{searchTerms}', common_local_url($type, array('q' => '---')))));
$this->element('Image', array('height' => 16, 'width' => 16, 'type' => 'image/vnd.microsoft.icon'), common_path('favicon.ico'));
- $this->element('Image', array('height' => 50, 'width' => 50, 'type' => 'image/png'), theme_path('logo.png'));
+ $this->element('Image', array('height' => 50, 'width' => 50, 'type' => 'image/png'), Theme::path('logo.png'));
$this->element('AdultContent', null, 'false');
$this->element('Language', null, common_language());
$this->element('OutputEncoding', null, 'UTF-8');