summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-17 01:35:06 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-17 01:35:06 +0100
commitb8c4afadf4bff7ac282ac5933eedccb1c666d873 (patch)
treeaef58395f1aecf027532fdc579b73084edfb8aa8 /public
parenta532a023633ac692bd573d4ec29b7871e8e4c19f (diff)
Nouveau fichier constants.php
En particulier pour stocker le numéro de version de FreshRSS utilisé entre autres par https://github.com/marienfressinaud/FreshRSS/issues/174 et centraliser les constantes de chemins Implémente https://github.com/marienfressinaud/FreshRSS/issues/271
Diffstat (limited to 'public')
-rwxr-xr-xpublic/index.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/public/index.php b/public/index.php
index 1a1651707..bda585592 100755
--- a/public/index.php
+++ b/public/index.php
@@ -18,12 +18,7 @@
#
# ***** END LICENSE BLOCK *****
-// Constantes de chemins
-define ('PUBLIC_PATH', realpath (dirname (__FILE__)));
-define ('LIB_PATH', realpath (PUBLIC_PATH . '/../lib'));
-define ('APP_PATH', realpath (PUBLIC_PATH . '/../app'));
-define ('LOG_PATH', realpath (PUBLIC_PATH . '/../log'));
-define ('CACHE_PATH', realpath (PUBLIC_PATH . '/../cache'));
+require('../constants.php');
if (file_exists (PUBLIC_PATH . '/install.php')) {
include ('install.php');