]> git.mxchange.org Git - friendica.git/blobdiff - mod/update_network.php
Merge pull request #2094 from annando/1511-api
[friendica.git] / mod / update_network.php
index 0dfe0a73ff568297ec7b8e42b20c2917148d30c0..1bf374657573b5785e38622f0b716ff8bfcffd7b 100644 (file)
@@ -11,10 +11,13 @@ function update_network_content(&$a) {
 
        header("Content-type: text/html");
        echo "<!DOCTYPE html><html><body>\r\n";
-       echo (($_GET['msie'] == 1) ? '<div>' : '<section>');
+       echo "<section>";
 
+       if (!get_pconfig($profile_uid, "system", "no_auto_update") OR ($_GET['force'] == 1))
+               $text = network_content($a,$profile_uid);
+       else
+               $text = "";
 
-       $text = network_content($a,$profile_uid);
        $pattern = "/<img([^>]*) src=\"([^\"]*)\"/";
        $replace = "<img\${1} dst=\"\${2}\"";
        $text = preg_replace($pattern, $replace, $text);
@@ -31,7 +34,7 @@ function update_network_content(&$a) {
 
 
        echo str_replace("\t",'       ',$text);
-       echo (($_GET['msie'] == 1) ? '</div>' : '</section>');
+       echo "</section>";
        echo "</body></html>\r\n";
        killme();