diff options
Diffstat (limited to 'inc/poche')
-rw-r--r-- | inc/poche/Routing.class.php | 8 | ||||
-rwxr-xr-x | inc/poche/global.inc.php | 13 |
2 files changed, 4 insertions, 17 deletions
diff --git a/inc/poche/Routing.class.php b/inc/poche/Routing.class.php index 6e2c046b..8c2f38e3 100644 --- a/inc/poche/Routing.class.php +++ b/inc/poche/Routing.class.php | |||
@@ -11,8 +11,8 @@ | |||
11 | class Routing | 11 | class Routing |
12 | { | 12 | { |
13 | protected $wallabag; | 13 | protected $wallabag; |
14 | public $referer; | 14 | protected $referer; |
15 | public $view; | 15 | protected $view; |
16 | protected $action; | 16 | protected $action; |
17 | protected $id; | 17 | protected $id; |
18 | protected $url; | 18 | protected $url; |
@@ -55,7 +55,7 @@ class Routing | |||
55 | # because messages can be added in $poche->action(), we have to add this entry now (we can add it before) | 55 | # because messages can be added in $poche->action(), we have to add this entry now (we can add it before) |
56 | $this->vars = array_merge($this->vars, array('messages' => $this->wallabag->messages->display('all', FALSE))); | 56 | $this->vars = array_merge($this->vars, array('messages' => $this->wallabag->messages->display('all', FALSE))); |
57 | 57 | ||
58 | $this->render($this->file, $this->vars); | 58 | $this->_render($this->file, $this->vars); |
59 | } | 59 | } |
60 | 60 | ||
61 | private function _defineTplInformation() | 61 | private function _defineTplInformation() |
@@ -142,7 +142,7 @@ class Routing | |||
142 | } | 142 | } |
143 | } | 143 | } |
144 | 144 | ||
145 | public function render($file, $vars) | 145 | public function _render($file, $vars) |
146 | { | 146 | { |
147 | echo $this->wallabag->tpl->render($file, $vars); | 147 | echo $this->wallabag->tpl->render($file, $vars); |
148 | } | 148 | } |
diff --git a/inc/poche/global.inc.php b/inc/poche/global.inc.php index 9d710b6c..3eb64df0 100755 --- a/inc/poche/global.inc.php +++ b/inc/poche/global.inc.php | |||
@@ -40,12 +40,6 @@ require_once INCLUDES . '/3rdparty/libraries/PHPePub/Logger.php'; | |||
40 | require_once INCLUDES . '/3rdparty/libraries/PHPePub/EPub.php'; | 40 | require_once INCLUDES . '/3rdparty/libraries/PHPePub/EPub.php'; |
41 | require_once INCLUDES . '/3rdparty/libraries/PHPePub/EPubChapterSplitter.php'; | 41 | require_once INCLUDES . '/3rdparty/libraries/PHPePub/EPubChapterSplitter.php'; |
42 | 42 | ||
43 | require_once INCLUDES . '/3rdparty/PicoFarad/Request.php'; | ||
44 | require_once INCLUDES . '/3rdparty/PicoFarad/Response.php'; | ||
45 | require_once INCLUDES . '/3rdparty/PicoFarad/Router.php'; | ||
46 | require_once INCLUDES . '/3rdparty/PicoFarad/Session.php'; | ||
47 | require_once INCLUDES . '/3rdparty/PicoFarad/Template.php'; | ||
48 | |||
49 | # system configuration; database credentials et caetera | 43 | # system configuration; database credentials et caetera |
50 | require_once INCLUDES . '/poche/config.inc.php'; | 44 | require_once INCLUDES . '/poche/config.inc.php'; |
51 | require_once INCLUDES . '/poche/config.inc.default.php'; | 45 | require_once INCLUDES . '/poche/config.inc.default.php'; |
@@ -61,10 +55,3 @@ if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timez | |||
61 | if (defined('ERROR_REPORTING')) { | 55 | if (defined('ERROR_REPORTING')) { |
62 | error_reporting(ERROR_REPORTING); | 56 | error_reporting(ERROR_REPORTING); |
63 | } | 57 | } |
64 | |||
65 | // Start session | ||
66 | Session::$sessionName = 'wallabag'; | ||
67 | Session::init(); | ||
68 | |||
69 | // Let's rock ! | ||
70 | $wallabag = new Poche(); | ||