]> git.agnieray.net Git - galette.git/commitdiff
Remove no longer used paths constants
authorJohan Cwiklinski <johan@x-tnd.be>
Tue, 30 Apr 2024 07:08:49 +0000 (09:08 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Tue, 30 Apr 2024 07:16:13 +0000 (09:16 +0200)
galette/config/paths.inc.php
galette/install/steps/check.php

index 20bea839476c92462e92e05019c34699d7f1ddd6..c37edd2c916654811852208d4d27ca913fc77d94 100644 (file)
@@ -20,7 +20,7 @@
 
 /**
  * Various paths
- * Path to external librarires, logs files, exports directory, ...
+ * Path to external libraries, logs files, exports directory, ...
  *
  * @author Johan Cwiklinski <johan@x-tnd.be>
  */
@@ -29,45 +29,18 @@ if (file_exists(GALETTE_ROOT . 'config/local_paths.inc.php')) {
     include GALETTE_ROOT . 'config/local_paths.inc.php';
 }
 
-//external libraries
-if (!defined('GALETTE_ZEND_PATH')) {
-    define('GALETTE_ZEND_PATH', GALETTE_ROOT . 'vendor/zendframework');
-}
-if (!defined('GALETTE_ANALOG_PATH')) {
-    define(
-        'GALETTE_ANALOG_PATH',
-        GALETTE_ROOT . 'vendor/analog/analog'
-    );
-}
-if (!defined('GALETTE_PHP_MAILER_PATH')) {
-    define(
-        'GALETTE_PHP_MAILER_PATH',
-        GALETTE_ROOT . 'vendor/phpmailer/phpmailer'
-    );
-}
-if (!defined('GALETTE_SMARTY_PATH')) {
-    define(
-        'GALETTE_SMARTY_PATH',
-        GALETTE_ROOT . 'vendor/smarty/smarty/'
-    );
-}
+//3rd party libs paths
 if (!defined('GALETTE_TCPDF_PATH')) {
     define(
         'GALETTE_TCPDF_PATH',
         GALETTE_ROOT . '/vendor/tecnickcom/tcpdf'
     );
 }
-/*if ( !defined('GALETTE_SLIM_PATH') ) {
-    define('GALETTE_SLIM_PATH', GALETTE_ROOT . 'lib/Slim-' . SLIM_VERSION);
-}
-if ( !defined('GALETTE_SLIM_VIEWS_PATH') ) {
-    define('GALETTE_SLIM_VIEWS_PATH', GALETTE_ROOT . 'lib/Slim-Views');
-}*/
 if (!defined('GALETTE_XHPROF_PATH')) {
     define('GALETTE_XHPROF_PATH', '/usr/share/xhprof/');
 }
 
-//galete's paths
+//Galette paths
 if (!defined('GALETTE_CONFIG_PATH')) {
     define('GALETTE_CONFIG_PATH', GALETTE_ROOT . 'config/');
 }
@@ -83,9 +56,6 @@ if (!defined('GALETTE_THEMES_PATH')) {
 if (!defined('GALETTE_LOGS_PATH')) {
     define('GALETTE_LOGS_PATH', GALETTE_DATA_PATH . 'logs/');
 }
-if (!defined('GALETTE_COMPILE_DIR')) {
-    define('GALETTE_COMPILE_DIR', GALETTE_DATA_PATH . 'templates_c/');
-}
 if (!defined('GALETTE_CACHE_DIR')) {
     define('GALETTE_CACHE_DIR', GALETTE_DATA_PATH . 'cache/' . GALETTE_VERSION . '/');
 }
index 6d44813752f3d97e14de243b909606b0c3ced850..cff898471cec9bce2604bad18dc5d8dd66fa2af3 100644 (file)
@@ -46,7 +46,6 @@ $modules_ok = $cm->isValid();
 // check file permissions
 $perms_ok = true;
 $files_need_rw = array(
-    _T("Compilation")       => GALETTE_COMPILE_DIR,
     _T("Photos")            => GALETTE_PHOTOS_PATH,
     _T("Cache")             => str_replace(GALETTE_VERSION, '', GALETTE_CACHE_DIR),
     _T("Temporary images")  => GALETTE_TEMPIMAGES_PATH,