This commit is contained in:
Shish
2023-11-11 21:49:12 +00:00
parent 848797030e
commit fd1bb21f9d
235 changed files with 1551 additions and 1591 deletions

View File

@@ -39,7 +39,7 @@ class DataUploadEvent extends Event
$metadata['filename'] = substr($metadata['filename'], 0, 255);
}
public function set_tmpname(string $tmpname, ?string $mime=null)
public function set_tmpname(string $tmpname, ?string $mime = null)
{
assert(is_readable($tmpname));
$this->tmpname = $tmpname;
@@ -151,7 +151,7 @@ class Upload extends Extension
public function onPageSubNavBuilding(PageSubNavBuildingEvent $event)
{
if ($event->parent=="upload") {
if ($event->parent == "upload") {
if (class_exists("Shimmie2\Wiki")) {
$event->add_nav_link("upload_guidelines", new Link('wiki/upload_guidelines'), "Guidelines");
}