Skip to content

Commit

Permalink
fixing duplicate path on font file
Browse files Browse the repository at this point in the history
  • Loading branch information
jakoch committed Sep 26, 2012
1 parent 5d64355 commit 1b9b364
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/Koch/Captcha/Captcha.php
Expand Up @@ -94,9 +94,9 @@ public static function getRandomFont($fonts_dir)
$iterator = new \DirectoryIterator($fonts_dir);

foreach ($iterator as $file) {
// if a fontfile.ttf is found add it to the array
// add font files (*.ttf) to the array
if ($file->isFile() and (strrchr($file->getPathname(), '.') == '.ttf')) {
self::$fonts = $fonts_dir . $file->getPathname();
self::$fonts[] = $file->getPathname();
}
}

Expand Down

0 comments on commit 1b9b364

Please sign in to comment.