mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 02:04:35 +02:00
Some minor CSS/JS updates to ProcessField
This commit is contained in:
@@ -825,7 +825,7 @@ class WireFileTools extends Wire {
|
||||
*
|
||||
*/
|
||||
public function send($filename, array $options = array(), array $headers = array()) {
|
||||
$defaults = array('limitPath' => false, 'throw' => true);
|
||||
$defaults = array('limitPath' => $this->wire()->getStatus() === 32, 'throw' => true);
|
||||
$options = array_merge($defaults, $options);
|
||||
if($filename && !$this->allowPath($filename, $options['limitPath'], $options['throw'])) return 0;
|
||||
$http = new WireHttp();
|
||||
|
@@ -1296,7 +1296,7 @@ class WireHttp extends Wire {
|
||||
*
|
||||
* @param string|bool $filename Filename to send (or boolean false if sending $options[data] rather than file)
|
||||
* @param array $options Options that you may pass in:
|
||||
* - `exit` (bool): Halt program executation after file send (default=true).
|
||||
* - `exit` (bool): Halt program execution after file send (default=true).
|
||||
* - `partial` (bool): Allow use of partial downloads via HTTP_RANGE requests? Since 3.0.131 (default=true)
|
||||
* - `forceDownload` (bool|null): Whether file should force download (default=null, i.e. let content-type header decide).
|
||||
* - `downloadFilename` (string): Filename you want the download to show on user's computer, or omit to use existing.
|
||||
|
Reference in New Issue
Block a user