Commit 2245eb642952d8665ac121e8501a50acc88b62f9

Authored by Neil Blakey-Milner
1 parent 59de9efc

Fix typos in KTUtil::isAbsolutePath


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4684 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 3 additions and 3 deletions
lib/util/ktutil.inc
@@ -452,13 +452,13 @@ class KTUtil { @@ -452,13 +452,13 @@ class KTUtil {
452 452
453 // {{{ isAbsolutePath 453 // {{{ isAbsolutePath
454 function isAbsolutePath($sPath) { 454 function isAbsolutePath($sPath) {
455 - if (substr($sFilename, 0, 1) == '/') { 455 + if (substr($sPath, 0, 1) == '/') {
456 return true; 456 return true;
457 } 457 }
458 - if (OS_WINDOWS && (substr($sFilename, 1, 2) == ':/')) { 458 + if (OS_WINDOWS && (substr($sPath, 1, 2) == ':/')) {
459 return true; 459 return true;
460 } 460 }
461 - if (OS_WINDOWS && (substr($sFilename, 1, 2) == ':\')) { 461 + if (OS_WINDOWS && (substr($sPath, 1, 2) == ':\')) {
462 return true; 462 return true;
463 } 463 }
464 return false; 464 return false;