SF.net SVN: phpwiki:[10719] trunk/lib/plugin/FileInfo.php

vargenau--- via phpwiki-checkins <[email protected]>
Newsgroups gmane.comp.web.wiki.phpwiki.checkins
Message-ID <[email protected]>
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.



_______________________________________________
phpwiki-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpwiki-checkins
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.