Optimized version of the possibility to reload the content of the network page only at its top.

This commit is contained in:
Michael Vogel 2014-08-02 00:35:25 +02:00
parent 1a865bf400
commit 4d6f28d224
4 changed files with 12 additions and 18 deletions

View file

@ -13,12 +13,9 @@ function update_network_content(&$a) {
echo "<!DOCTYPE html><html><body>\r\n";
echo (($_GET['msie'] == 1) ? '<div>' : '<section>');
$no_auto_update = get_pconfig($profile_uid, "system", "no_auto_update");
if (($no_auto_update <= 0) OR ($_GET['top'] == 1)) {
if (!get_pconfig($profile_uid, "system", "no_auto_update") OR ($_GET['force'] == 1))
$text = network_content($a,$profile_uid);
if ($no_auto_update < 0)
set_pconfig($profile_uid, "system", "no_auto_update", 1);
} else
else
$text = "";
$pattern = "/<img([^>]*) src=\"([^\"]*)\"/";