Commit e8a21863438a01c385f13737e0744e554d18bd38

Authored by Kevin Fourie
1 parent e0a52879

KTS-3404

"A incorrect full path for registering plugins"
Fixed.

Committed By: Kevin Fourie
Reviewed By: Conrad Vermeulen


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8614 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/plugins/pluginutil.inc.php
@@ -456,10 +456,7 @@ class KTPluginUtil { @@ -456,10 +456,7 @@ class KTPluginUtil {
456 if(empty($sPath)){ 456 if(empty($sPath)){
457 return ''; 457 return '';
458 } 458 }
459 - if($sPath[0] != '/'){  
460 - $sPath = '/'.$sPath;  
461 - }  
462 - $sPath = (KTUtil::isAbsolutePath($sPath)) ? $sPath : KT_DIR . $sPath; 459 + $sPath = (KTUtil::isAbsolutePath($sPath)) ? $sPath : KT_DIR . '/' . $sPath;
463 return $sPath; 460 return $sPath;
464 } 461 }
465 462
@@ -612,4 +609,4 @@ class KTPluginUtil { @@ -612,4 +609,4 @@ class KTPluginUtil {
612 } 609 }
613 } 610 }
614 611
615 -?>  
616 \ No newline at end of file 612 \ No newline at end of file
  613 +?>