aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-02-17 12:32:12 +0100
committerMario Vavti <mario@mariovavti.com>2016-02-17 12:32:12 +0100
commitddbe3c7426a551420bb6ead09984333e956b3a58 (patch)
tree4289d39a2632b1f38fdecbcb9a550258da4d2631 /boot.php
parentb8c7b2f81df61e5068366cbdb0f18940ff5d4bf1 (diff)
downloadvolse-hubzilla-ddbe3c7426a551420bb6ead09984333e956b3a58.tar.gz
volse-hubzilla-ddbe3c7426a551420bb6ead09984333e956b3a58.tar.bz2
volse-hubzilla-ddbe3c7426a551420bb6ead09984333e956b3a58.zip
make always preload images before rendering the page a display setting
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index 9728f1168..1471aa781 100755
--- a/boot.php
+++ b/boot.php
@@ -992,6 +992,10 @@ class App {
if ($user_scalable === false)
$user_scalable = 1;
+ $preload_images = ((local_channel()) ? get_pconfig(local_channel(),'system','preload_images') : 0);
+ if ($preload_images === false)
+ $preload_images = 0;
+
$interval = ((local_channel()) ? get_pconfig(local_channel(),'system','update_interval') : 80000);
if($interval < 10000)
$interval = 80000;
@@ -1005,6 +1009,7 @@ class App {
*/
$tpl = get_markup_template('head.tpl');
$this->page['htmlhead'] = replace_macros($tpl, array(
+ '$preload_images' => $preload_images,
'$user_scalable' => $user_scalable,
'$baseurl' => $this->get_baseurl(),
'$local_channel' => local_channel(),