X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=d88f43467e86eba578d1f1cfcfad09a9c2f26353;hb=854ea372553d6ef8174cae320801e5ff3a101a87;hp=a5d8b7bdbebe09583fecb8796810b476df626a43;hpb=510377d2cb4b12d1a421e8a88bd7edb86f223451;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index a5d8b7bd..d88f4346 100644 --- a/index.php +++ b/index.php @@ -53,6 +53,9 @@ $GLOBALS['config']['LOG_FILE'] = $GLOBALS['config']['DATADIR'].'/log.txt'; // For updates check of Shaarli $GLOBALS['config']['UPDATECHECK_FILENAME'] = $GLOBALS['config']['DATADIR'].'/lastupdatecheck.txt'; +// Set ENABLE_UPDATECHECK to disabled by default. +$GLOBALS['config']['ENABLE_UPDATECHECK'] = false; + // RainTPL cache directory (keep the trailing slash!) $GLOBALS['config']['RAINTPL_TMP'] = 'tmp/'; // Raintpl template directory (keep the trailing slash!) @@ -113,7 +116,8 @@ $GLOBALS['config']['UPDATECHECK_INTERVAL'] = 86400; //); $GLOBALS['config']['ENABLED_PLUGINS'] = array('qrcode'); -//$GLOBALS['plugins']['WALLABAG_URL'] = 'https://demo.wallabag.org/'; +// Initialize plugin parameters array. +$GLOBALS['plugins'] = array(); // PubSubHubbub support. Put an empty string to disable, or put your hub url here to enable. $GLOBALS['config']['PUBSUBHUB_URL'] = ''; @@ -1141,9 +1145,9 @@ function renderPage() // Call plugin hooks for header, footer and includes, specifying which page will be rendered. // Then assign generated data to RainTPL. $common_hooks = array( + 'includes', 'header', 'footer', - 'includes', ); $pluginManager = PluginManager::getInstance(); foreach($common_hooks as $name) {