aboutsummaryrefslogtreecommitdiffstats
path: root/mod/pretheme.php
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2012-03-26 20:17:01 +0100
committerThomas Willingham <founder@kakste.com>2012-03-26 20:17:01 +0100
commit286c230fa858b7b1fead9c3ff722f6b1b9478d01 (patch)
tree463f0d075f9593a4d513aa91e08ebc896b00779a /mod/pretheme.php
parent64a2b00cdc97e40ac8e9dc8f0b9cdc5d78cdf2c2 (diff)
parent0a3f2bdd5bc51d7fc642f431843a5b13287ae94e (diff)
downloadvolse-hubzilla-286c230fa858b7b1fead9c3ff722f6b1b9478d01.tar.gz
volse-hubzilla-286c230fa858b7b1fead9c3ff722f6b1b9478d01.tar.bz2
volse-hubzilla-286c230fa858b7b1fead9c3ff722f6b1b9478d01.zip
Merge remote-tracking branch 'main/master'
Diffstat (limited to 'mod/pretheme.php')
-rw-r--r--mod/pretheme.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/pretheme.php b/mod/pretheme.php
new file mode 100644
index 000000000..5a71bbe53
--- /dev/null
+++ b/mod/pretheme.php
@@ -0,0 +1,6 @@
+<?php
+
+function pretheme_init(&$a) {
+ if($_REQUEST['theme']) echo json_encode(array('img' => get_theme_screenshot($_REQUEST['theme'])));
+ killme();
+}