View Issue Details

IDProjectCategoryView StatusLast Update
0011492mantisbtadministrationpublic2010-04-23 14:30
ReporterKirill Assigned Todhx  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Versiongit trunk 
Target Version1.2.1Fixed in Version1.2.1 
Summary0011492: What is BASE_PATH in check.php
Description

When check jpgraph
$t_jpgraph_path = BASE_PATH . DIRECTORY_SEPARATOR . 'library' . DIRECTORY_SEPARATOR . 'jpgraph' . DIRECTORY_SEPARATOR;

What is BASE_PATH? For me is equal 'BASE_PATH';

Tagspatch
Attached Files
Issue11492.patch (1,031 bytes)   
From 2103e5661a3877daf1321b8fd9e074172c713e18 Mon Sep 17 00:00:00 2001
From: Kirill Krasnov <krasnovforum@gmail.com>
Date: Thu, 11 Feb 2010 10:58:48 +0200
Subject: [PATCH] Fix #11492 checking jpgraph default value

---
 admin/check.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/admin/check.php b/admin/check.php
index ed5c155..5ba969e 100644
--- a/admin/check.php
+++ b/admin/check.php
@@ -344,7 +344,7 @@ if( plugin_is_installed( 'MantisGraph' ) ) {
 
 	print_test_row( 'checking gd is enabled, and version 2...', get_gd_version() == 2 );
 	if ( plugin_config_get( 'eczlibrary', OFF ) == OFF ) {
-		$t_jpgraph_path = BASE_PATH . DIRECTORY_SEPARATOR . 'library' . DIRECTORY_SEPARATOR . 'jpgraph' . DIRECTORY_SEPARATOR;
+		$t_jpgraph_path = config_get( 'absolute_path' ) . 'library' . DIRECTORY_SEPARATOR . 'jpgraph' . DIRECTORY_SEPARATOR;
 
 		if( !file_exists( $t_jpgraph_path . 'jpgraph.php') ) {
 			print_test_row( 'checking we can find jpgraph class files...', false );
-- 
1.6.5.1.1367.gcd48

Issue11492.patch (1,031 bytes)   

Activities

dhx

dhx

2010-02-26 18:32

reporter   ~0024552

Thanks Kirill for your patch, I've applied it :)

Related Changesets

MantisBT: master-1.2.x 0cc43087

2010-02-11 03:58

Kirill Krasnov

Committer: dhx


Details Diff
Fix 0011492: Incorrect use of BASE_PATH constant in jpgraph check

Within admin/check.php the jpgraph check attempts to find the jpgraph
libraries by using the BASE_PATH constant instead of
config_get( 'absolute_path' ).

Signed-off-by: David Hicks <hickseydr@optusnet.com.au>
Affected Issues
0011492
mod - admin/check.php Diff File

MantisBT: master db07af11

2010-02-11 03:58

Kirill Krasnov

Committer: dhx


Details Diff
Fix 0011492: Incorrect use of BASE_PATH constant in jpgraph check

Within admin/check.php the jpgraph check attempts to find the jpgraph
libraries by using the BASE_PATH constant instead of
config_get( 'absolute_path' ).

Signed-off-by: David Hicks <hickseydr@optusnet.com.au>
Affected Issues
0011492
mod - admin/check.php Diff File