X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=c134b1035275f9eb1a2fb24e2e019e925a678d7f;hb=69213014d1fb8f05cffe7bf83467d938a282f29b;hp=2c81afd69018ce2eb2161bdbc3c9b9baf3857224;hpb=a71dc5d7d093e0986d184c4e024eba5901938242;p=github%2Fwallabag%2Fwallabag.git diff --git a/index.php b/index.php old mode 100644 new mode 100755 index 2c81afd6..c134b103 --- a/index.php +++ b/index.php @@ -8,10 +8,18 @@ * @license http://www.wtfpl.net/ see COPYING file */ -define ('POCHE', '1.5.1'); +define ('POCHE', '1.7.0'); require 'check_setup.php'; require_once 'inc/poche/global.inc.php'; -session_start(); + +# Set error reporting level +if (defined('ERROR_REPORTING')) { + error_reporting(ERROR_REPORTING); +} + +# Start session +Session::$sessionName = 'poche'; +Session::init(); # Start Poche $poche = new Poche(); @@ -30,14 +38,14 @@ $tpl_vars = array( 'referer' => $referer, 'view' => $view, 'poche_url' => Tools::getPocheUrl(), - 'title' => _('poche, a read it later open source system'), + 'title' => _('wallabag, a read it later open source system'), 'token' => Session::getToken(), 'theme' => $poche->getTheme() ); if (! empty($notInstalledMessage)) { if (! Poche::$canRenderTemplates || ! Poche::$configFileAvailable) { - # We cannot use Twig to display the error message + # We cannot use Twig to display the error message echo '