X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=functions.php;h=a6977b2a21b7f93374d34a231a242a398a1ccf45;hb=8d3cb8c0a95e21bda7d4b35b41d32ea5eb4084bc;hp=6d72c687399cd355e5b443062ae774283150afbe;hpb=500943a45b3993b28ceee7331ac0bf65ae22b636;p=tt-rss.git
diff --git a/functions.php b/functions.php
index 6d72c687..a6977b2a 100644
--- a/functions.php
+++ b/functions.php
@@ -2044,9 +2044,9 @@
}
if ($theme_path) {
- if (is_file("$t/theme.ini")) {
- $ini = parse_ini_file("$t/theme.ini", true);
- if ($ini['theme']['version'] > THEME_VERSION_REQUIRED) {
+ if (is_file("$theme_path/theme.ini")) {
+ $ini = parse_ini_file("$theme_path/theme.ini", true);
+ if ($ini['theme']['version'] >= THEME_VERSION_REQUIRED) {
return $theme_path;
}
}
@@ -2068,6 +2068,20 @@
return '';
}
+ function print_theme_includes($link) {
+
+ $t = get_user_theme_path($link);
+ $time = time();
+
+ if ($t) {
+ print "";
+ if (file_exists("$t/theme.js")) {
+ print "";
+ }
+ }
+ }
function get_all_themes() {
$themes = glob("themes/*");
@@ -2079,7 +2093,7 @@
foreach ($themes as $t) {
if (is_file("$t/theme.ini")) {
$ini = parse_ini_file("$t/theme.ini", true);
- if ($ini['theme']['version'] > THEME_VERSION_REQUIRED &&
+ if ($ini['theme']['version'] >= THEME_VERSION_REQUIRED &&
!$ini['theme']['disabled']) {
$entry = array();
$entry["path"] = $t;