From a9b3b28d001941921aa70d37fdc87c758a163a44 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 05 Jun 2026 16:47:03 +0000
Subject: [PATCH] =Some hefty changes to FeedBlock. Transitioning to loading first page in php to save on extra requests. Got a bit to do yet, but I have to work on Northeh for a bit here.
---
inc/registrar/fields/UploadField.php | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/inc/registrar/fields/UploadField.php b/inc/registrar/fields/UploadField.php
index dfc2f1b..1042fdc 100644
--- a/inc/registrar/fields/UploadField.php
+++ b/inc/registrar/fields/UploadField.php
@@ -12,26 +12,26 @@
protected int $maxUploads;
- protected function setMultiple(bool $set):void
+ public function setMultiple(bool $set):void
{
$this->multiple = $set;
}
- protected function getMultiple():bool
+ public function getMultiple():bool
{
return $this->multiple;
}
- protected function setMaxUploads(int $maxUploads):void
+ public function setMaxUploads(int $maxUploads):void
{
$max = 20;
$this->maxUploads = min($maxUploads, $max);
}
- protected function getMaxUploads():int
+ public function getMaxUploads():int
{
return $this->maxUploads;
}
- protected function setSubtype(string $subtype):void
+ public function setSubtype(string $subtype):void
{
$allowed = ['document', 'video', 'image', 'all'];
if (!in_array($subtype, $allowed)) {
@@ -40,7 +40,7 @@
}
$this->subtype = $subtype;
}
- protected function getSubtype():string
+ public function getSubtype():string
{
return $this->subtype;
}
--
Gitblit v1.10.0