aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2012-08-06 19:25:09 +0100
committerThomas Willingham <founder@kakste.com>2012-08-06 19:25:09 +0100
commite6763be5f32282296c4a76a126d6b67628dbdd04 (patch)
tree6add19617070bb9c262977820f879bcb5a9b05eb /include
parentc673c70c25143f18b2ef6aef9ee6633d0eac46ae (diff)
downloadvolse-hubzilla-e6763be5f32282296c4a76a126d6b67628dbdd04.tar.gz
volse-hubzilla-e6763be5f32282296c4a76a126d6b67628dbdd04.tar.bz2
volse-hubzilla-e6763be5f32282296c4a76a126d6b67628dbdd04.zip
Bring get_theme_screenshot and get_theme_info up to date.
Diffstat (limited to 'include')
-rw-r--r--include/plugin.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/plugin.php b/include/plugin.php
index 8f6d6ea98..22745835d 100644
--- a/include/plugin.php
+++ b/include/plugin.php
@@ -266,9 +266,9 @@ function get_theme_info($theme){
if(file_exists("view/theme/$theme/unsupported"))
$info['unsupported'] = true;
- if (!is_file("view/theme/$theme/theme.php")) return $info;
+ if (!is_file("view/theme/$theme/php/theme.php")) return $info;
- $f = file_get_contents("view/theme/$theme/theme.php");
+ $f = file_get_contents("view/theme/$theme/php/theme.php");
$r = preg_match("|/\*.*\*/|msU", $f, $m);
@@ -313,8 +313,8 @@ function get_theme_screenshot($theme) {
$a = get_app();
$exts = array('.png','.jpg');
foreach($exts as $ext) {
- if(file_exists('view/theme/' . $theme . '/screenshot' . $ext))
- return($a->get_baseurl() . '/view/theme/' . $theme . '/screenshot' . $ext);
+ if(file_exists('view/theme/' . $theme . '/img/screenshot' . $ext))
+ return($a->get_baseurl() . '/view/theme/' . $theme . '/img/screenshot' . $ext);
}
return($a->get_baseurl() . '/images/blank.png');
}