Use StringUtil::indexOf() in ExceptionLogView
authorTim Düsterhus <duesterhus@woltlab.com>
Sat, 20 Apr 2013 15:59:48 +0000 (17:59 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Sat, 20 Apr 2013 16:00:31 +0000 (18:00 +0200)
wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php

index 3453885855e019ec70236717ad3f5938006de761..0cdd2bb03e939e57e3137f924763bfeb79c6ad21 100644 (file)
@@ -79,7 +79,7 @@ class ExceptionLogViewPage extends MultipleLinkPage {
                        foreach ($this->logFiles as $logFile) {
                                $contents = file_get_contents($logFile);
                                
-                               if (strpos($contents, '<<<<<<<<'.$this->exceptionID.'<<<<') !== false) {
+                               if (StringUtil::indexOf($contents, '<<<<<<<<'.$this->exceptionID.'<<<<') !== false) {
                                        $fileNameRegex->match($logFile);
                                        $matches = $fileNameRegex->getMatches();
                                        $this->logFile = $matches[0];