Browse Source

Fixing define PHP error

Julio Montoya 12 years ago
parent
commit
2bd9f4775c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/inc/lib/mpdf/mpdf.php

+ 2 - 2
main/inc/lib/mpdf/mpdf.php

@@ -44,11 +44,11 @@ if (!defined('_JPGRAPH_PATH')) define("_JPGRAPH_PATH", _MPDF_PATH.'jpgraph/');
 // The directories ".../chamilo/main/inc/lib/mpdf/graph_cache/" and ".../chamilo/main/inc/lib/mpdf/tmp/"
 // are moved at new locations ".../chamilo/arcive/mpdf/graph_cache/" and ".../chamilo/arcive/mpdf/tmp/"
 // where access for writting is guaranteed.
-define(_MPDF_GRAPH_CHACHE_PATH, api_get_path(SYS_ARCHIVE_PATH).'mpdf/graph_cache/');
+define('_MPDF_GRAPH_CHACHE_PATH', api_get_path(SYS_ARCHIVE_PATH).'mpdf/graph_cache/');
 if (!file_exists(_MPDF_GRAPH_CHACHE_PATH)) {
 	@mkdir(_MPDF_GRAPH_CHACHE_PATH, api_get_permissions_for_new_directories(), true);
 }
-define(_MPDF_TEMP_PATH, api_get_path(SYS_ARCHIVE_PATH).'mpdf/tmp/');
+define('_MPDF_TEMP_PATH', api_get_path(SYS_ARCHIVE_PATH).'mpdf/tmp/');
 if (!file_exists(_MPDF_TEMP_PATH)) {
 	@mkdir(_MPDF_TEMP_PATH, api_get_permissions_for_new_directories(), true);
 }