Commit 4ed0a0f072250b7e1f4e608699b0421bbbf1def6

Authored by kevin_fourie
1 parent 15029304

Merged in from DEV trunk...

KTS-3288
"Language Paths aren't being created in the database properly which causes the Welcome Dashlet to not display."
Fixed. Fixed a problem with the isAbsolutePath function.

Committed By: Jonathan Byrne
Reviewed By: Megan Watson

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/branches/3.5.2c-Release-Branch@8399 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 1 additions and 1 deletions
lib/util/ktutil.inc
@@ -867,7 +867,7 @@ class KTUtil { @@ -867,7 +867,7 @@ class KTUtil {
867 $sPath = str_replace('\\', '/', $sPath); 867 $sPath = str_replace('\\', '/', $sPath);
868 $sReal = str_replace('\\', '/', realpath($sPath)); 868 $sReal = str_replace('\\', '/', realpath($sPath));
869 869
870 - if(substr($sPath, -1, 1) == '/'){ 870 + if(substr($sPath, -1, 1) == '/' && substr($sReal, -1, 1) != '/'){
871 $sReal .= '/'; 871 $sReal .= '/';
872 } 872 }
873 873