SF.net SVN: phpwiki:[11163] trunk/lib/loadsave.php

carstenklapp--- via phpwiki-checkins <[email protected]> Sun, 23 Feb 2025 22:47:52 +0000
Newsgroups gmane.comp.web.wiki.phpwiki.checkins
Message-ID <[email protected]>
Revision: 11163
          http://sourceforge.net/p/phpwiki/code/11163
Author:   carstenklapp
Date:     2025-02-23 22:47:52 +0000 (Sun, 23 Feb 2025)
Log Message:
-----------
Import EXTERNAL page flag again

Modified Paths:
--------------
    trunk/lib/loadsave.php

Modified: trunk/lib/loadsave.php
===================================================================
--- trunk/lib/loadsave.php	2025-02-23 08:56:33 UTC (rev 11162)
+++ trunk/lib/loadsave.php	2025-02-23 22:47:52 UTC (rev 11163)
@@ -423,6 +423,7 @@
         longer_timeout($timeout); // Reset watchdog
 
         $pagename = $page->getName();
+
         echo "\n";
         PrintXML(HTML::br(), $pagename, $SEP);
         flush();
@@ -1191,7 +1192,7 @@
         if (!empty($pagedata['locked'])) {
             $mesg->pushContent(", LOCKING");
             // $mesg->pushContent(", lock=".$pagedata['locked']);
-            $page->set('locked', true);
+            $page->set('locked', $pagedata['locked']);
         } else {
             if (!defined('ALLOW_PGSRC_TO_UNLOCK_PAGES')) {
                 define ('ALLOW_PGSRC_TO_UNLOCK_PAGES' ,0);//debugging and security
@@ -1235,6 +1236,12 @@
                 $mesg->pushContent(", Loading acl=".$pagedata['perm']);
                 $page->set('perm', $pagedata['perm']);
             }
+            if (isset($pagedata['external']))
+            {
+                $mesg->pushContent(", EXTERNAL");
+                $page->set('external', $pagedata['external']);
+            }
+
         } else {
             if (isset($pagedata['hits']))
             {
@@ -1246,6 +1253,12 @@
                 $mesg->pushContent(", Not overwriting acl");
                 //unset($pagedata['perm']);//keep acl from loading over existing page
             }
+            if (isset($pagedata['external']))
+            {
+                $mesg->pushContent(", Not overwriting EXTERNAL");
+                //unset($pagedata['external']);
+            }
+
         }
         // if we want to load other fields in the future from
         // MIME file, here is where we do it:

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.