]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/System.php
Fix: Queries with empty selections hadn't worked anymore
[friendica.git] / src / Core / System.php
index f092427e58e85a6eaa85d5a2ddf3efbfed07ee8f..46f0cb4f32fbb9859aee3a203ca968f00b8a3762 100644 (file)
@@ -292,6 +292,24 @@ class System
                return true;
        }
 
+       /**
+        * Exit method used by asynchronous update modules
+        *
+        * @param string $o
+        */
+       public static function htmlUpdateExit($o)
+       {
+               header("Content-type: text/html");
+               echo "<!DOCTYPE html><html><body>\r\n";
+               // We can remove this hack once Internet Explorer recognises HTML5 natively
+               echo "<section>";
+               // reportedly some versions of MSIE don't handle tabs in XMLHttpRequest documents very well
+               echo str_replace("\t", "       ", $o);
+               echo "</section>";
+               echo "</body></html>\r\n";
+               exit();
+       }
+
        /// @todo Move the following functions from boot.php
        /*
        function local_user()