Changeset 5930
- Timestamp:
- 01/12/12 19:45:25 (4 months ago)
- File:
-
- 1 edited
-
trunk/core/gettext.core.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/gettext.core.php
r5706 r5930 194 194 * 195 195 * @param string $message 196 * 197 * @return string Html Log Message if logHandler resource is false. 196 198 */ 197 199 public function log($message) … … 245 247 # It's a directory 246 248 $resource = realpath($resource); 249 247 250 if(false === $resource) 248 251 { … … 317 320 318 321 # Check file extension 319 $ info = pathinfo($inputFile);322 $fileExtension = pathinfo($inputFile, PATHINFO_EXTENSION); 320 323 321 324 foreach($this->extractors as $extension => $extractor) 322 325 { 323 if($ info['extension']!== $extension)326 if($fileExtension !== $extension) 324 327 { 325 328 continue; … … 465 468 * 466 469 * @param boolean $return_string Boolean true returns string (default) and false returns array. 470 * 467 471 * @return mixed Array or String. Returns string by default. 468 472 */ … … 544 548 545 549 /** 546 * Escapes the given string, so it does not break thegettext syntax.550 * Escapes a string without breaking gettext syntax. 547 551 * 548 552 * @param string $string … … 552 556 public static function addSlashes($string) 553 557 { 554 return addcslashes($string, '"');558 return addcslashes($string, self::ESCAPE_CHARS); 555 559 } 556 560 }
Note: See TracChangeset
for help on using the changeset viewer.
