diff options
author | Simon L'nu <simon.lnu@gmail.com> | 2012-03-25 22:40:24 -0400 |
---|---|---|
committer | Simon L'nu <simon.lnu@gmail.com> | 2012-03-25 22:40:24 -0400 |
commit | 758e1b7424c8210a60df16a12f3ba3d32b433192 (patch) | |
tree | 1f811fa66480bb16cbd726257dc935185b58b15b /mod/admin.php | |
parent | 3d62cb97822e0bd9e5be0c404664667cb7cb8d98 (diff) | |
parent | 7ab117fd31c31cba4880cfcc63fc940531850455 (diff) | |
download | volse-hubzilla-758e1b7424c8210a60df16a12f3ba3d32b433192.tar.gz volse-hubzilla-758e1b7424c8210a60df16a12f3ba3d32b433192.tar.bz2 volse-hubzilla-758e1b7424c8210a60df16a12f3ba3d32b433192.zip |
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master:
theme screenshots
* master:
Diffstat (limited to 'mod/admin.php')
-rwxr-xr-x | mod/admin.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/admin.php b/mod/admin.php index a64b26903..53b5ee354 100755 --- a/mod/admin.php +++ b/mod/admin.php @@ -583,6 +583,7 @@ function admin_page_plugins(&$a){ '$admin_form' => $admin_form, '$function' => 'plugins', + '$screenshot' => '', '$readme' => $readme )); } @@ -738,7 +739,11 @@ function admin_page_themes(&$a){ } $admin_form=""; - + + $screenshot = array( get_theme_screenshot($theme), t('Screenshot')); + if(! stristr($screenshot[0],$theme)) + $screenshot = null; + $t = get_markup_template("admin_plugins_details.tpl"); return replace_macros($t, array( '$title' => t('Administration'), @@ -755,6 +760,7 @@ function admin_page_themes(&$a){ '$admin_form' => $admin_form, '$str_author' => t('Author: '), '$str_maintainer' => t('Maintainer: '), + '$screenshot' => $screenshot, '$readme' => $readme )); } |