From: Tim Düsterhus Date: Sat, 20 Apr 2013 15:59:48 +0000 (+0200) Subject: Use StringUtil::indexOf() in ExceptionLogView X-Git-Tag: 2.0.0_Beta_1~315 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=69d9f692c5965e07b17b958996a42d73aae7bdd2;p=GitHub%2FWoltLab%2FWCF.git Use StringUtil::indexOf() in ExceptionLogView --- diff --git a/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php b/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php index 3453885855..0cdd2bb03e 100644 --- a/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php @@ -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];