From: <var...@us...> - 2021-12-02 10:56:18
|
Revision: 10719 http://sourceforge.net/p/phpwiki/code/10719 Author: vargenau Date: 2021-12-02 10:56:16 +0000 (Thu, 02 Dec 2021) Log Message: ----------- FileInfo plugin: always define $is_Upload Modified Paths: -------------- trunk/lib/plugin/FileInfo.php Modified: trunk/lib/plugin/FileInfo.php =================================================================== --- trunk/lib/plugin/FileInfo.php 2021-12-01 16:39:02 UTC (rev 10718) +++ trunk/lib/plugin/FileInfo.php 2021-12-02 10:56:16 UTC (rev 10719) @@ -88,9 +88,10 @@ if (!$display) { return $this->error(sprintf(_("A required argument “%s” is missing."), 'display')); } + $is_Upload = false; if (string_starts_with($file, "Upload:")) { $file = preg_replace("/^Upload:(.*)$/", getUploadFilePath() . "\\1", $file); - $is_Upload = 1; + $is_Upload = true; } $dir = getcwd(); if (defined('PHPWIKI_DIR')) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |