aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Photo_rand.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2022-03-29 11:42:53 +0200
committerMario Vavti <mario@mariovavti.com>2022-03-29 11:42:53 +0200
commit0784cd593a39a4fc297e8a82f7e79bc8019a0868 (patch)
tree22182afb37cf460f8208fff9d276a0672add3185 /Zotlabs/Widget/Photo_rand.php
parent0e2e9321025f87fe9587f3d183adaea6185e4e20 (diff)
parent9c5d2ee5630dd7033904039dcd1e92db8821b644 (diff)
downloadvolse-hubzilla-0784cd593a39a4fc297e8a82f7e79bc8019a0868.tar.gz
volse-hubzilla-0784cd593a39a4fc297e8a82f7e79bc8019a0868.tar.bz2
volse-hubzilla-0784cd593a39a4fc297e8a82f7e79bc8019a0868.zip
Merge branch '7.2RC'7.2
Diffstat (limited to 'Zotlabs/Widget/Photo_rand.php')
-rw-r--r--Zotlabs/Widget/Photo_rand.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/Zotlabs/Widget/Photo_rand.php b/Zotlabs/Widget/Photo_rand.php
index af80a3b9f..cfe026b19 100644
--- a/Zotlabs/Widget/Photo_rand.php
+++ b/Zotlabs/Widget/Photo_rand.php
@@ -1,5 +1,10 @@
<?php
+/**
+ * * Name: Random photo
+ * * Description: Display a random photo
+ */
+
namespace Zotlabs\Widget;
require_once('include/photos.php');
@@ -40,15 +45,15 @@ class Photo_rand {
if(strpos($url, 'http') !== 0)
return '';
-
+
if(array_key_exists('style', $arr) && isset($arr['style']))
$style = $arr['style'];
-
+
// ensure they can't sneak in an eval(js) function
if(strpos($style,'(') !== false)
return '';
-
+
$url = zid($url);
$o = '<div class="widget">';