@@ 104-106 (lines=3) @@ | ||
101 | if (! empty($config['background'])) { |
|
102 | Captcha::$config['background'] = str_replace('\\', '/', realpath($config['background'])); |
|
103 | ||
104 | if (! is_file(Captcha::$config['background'])) { |
|
105 | throw new Kohana_Exception('captcha.file_not_found', Captcha::$config['background']); |
|
106 | } |
|
107 | } |
|
108 | ||
109 | // If using any fonts, check if they exist |
|
@@ 114-116 (lines=3) @@ | ||
111 | Captcha::$config['fontpath'] = str_replace('\\', '/', realpath($config['fontpath'])).'/'; |
|
112 | ||
113 | foreach ($config['fonts'] as $font) { |
|
114 | if (! is_file(Captcha::$config['fontpath'].$font)) { |
|
115 | throw new Kohana_Exception('captcha.file_not_found', Captcha::$config['fontpath'].$font); |
|
116 | } |
|
117 | } |
|
118 | } |
|
119 |