This commit is contained in:
Shish
2020-01-29 00:49:21 +00:00
parent e8a72b0291
commit 6d3ca01424
23 changed files with 95 additions and 55 deletions

View File

@@ -17,7 +17,7 @@ class RandomImage extends Extension
throw new SCoreException("Error: too many arguments.");
}
$image = Image::by_random($search_terms);
if(!$image) {
if (!$image) {
throw new SCoreException(
"Couldn't find any images randomly",
Tag::implode($search_terms)

View File

@@ -1,5 +1,7 @@
<?php declare(strict_types=1);
use function MicroHTML\{DIV,A,IMG};
use function MicroHTML\DIV;
use function MicroHTML\A;
use function MicroHTML\IMG;
class RandomImageTheme extends Themelet
{