Commit e8a21863438a01c385f13737e0744e554d18bd38
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
Showing
1 changed file
with
2 additions
and
5 deletions
lib/plugins/pluginutil.inc.php
| ... | ... | @@ -456,10 +456,7 @@ class KTPluginUtil { |
| 456 | 456 | if(empty($sPath)){ |
| 457 | 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 | 460 | return $sPath; |
| 464 | 461 | } |
| 465 | 462 | |
| ... | ... | @@ -612,4 +609,4 @@ class KTPluginUtil { |
| 612 | 609 | } |
| 613 | 610 | } |
| 614 | 611 | |
| 615 | -?> | |
| 616 | 612 | \ No newline at end of file |
| 613 | +?> | ... | ... |