mirror of
https://github.com/processwire/processwire.git
synced 2025-08-15 03:05:26 +02:00
Various minor updates
This commit is contained in:
@@ -632,7 +632,10 @@ class Fieldgroup extends WireArray implements Saveable, Exportable, HasLookupIte
|
||||
if(!$inputfield) continue;
|
||||
if($inputfield->collapsed == Inputfield::collapsedHidden) continue;
|
||||
|
||||
if(!$page instanceof NullPage) $inputfield->setAttribute('value', $page->get($field->name));
|
||||
if(!$page instanceof NullPage) {
|
||||
$value = $page->get($field->name);
|
||||
$inputfield->setAttribute('value', $value);
|
||||
}
|
||||
|
||||
if($multiMode) {
|
||||
$fieldInputfields[$field->id] = $inputfield;
|
||||
|
@@ -330,6 +330,7 @@ class WireUpload extends Wire {
|
||||
$extension = strtolower($pathInfo['extension']);
|
||||
|
||||
if(in_array($extension, $this->badExtensions)) return false;
|
||||
if(strpos($extension, 'php') === 0) return false;
|
||||
if(in_array($extension, $this->validExtensions)) return true;
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user