Changeset 25254 for trunk/tools/i18n/not-gettexted.php
- Timestamp:
- 09/05/2013 04:33:50 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/i18n/not-gettexted.php
r25003 r25254 60 60 continue; 61 61 if ('.php' == substr($item, -4)) 62 $files[] = $full_item; 62 $files[] = $full_item; 63 63 if (is_dir($full_item)) 64 64 $files += array_merge($files, NotGettexted::list_php_files($full_item, $files)); … … 100 100 } 101 101 if ($this->STAGE_START_COMMENT <= $stage && $stage <= $this->STAGE_WHITESPACE_AFTER && '/'.$current_comment_id == $matches[1]) { 102 $stage = $this->STAGE_END_COMMENT; 102 $stage = $this->STAGE_END_COMMENT; 103 103 $this->logmsg('end comment', $current_comment_id); 104 104 $result .= call_user_func($other_action, $token); … … 153 153 $tokens = token_get_all(file_get_contents($filename)); 154 154 $aggregator = $this->make_string_aggregator($global_name, $filename); 155 $this->walk_tokens($tokens, array( &$this, 'ignore_token'), array(&$this, 'ignore_token'), $aggregator);155 $this->walk_tokens($tokens, array($this, 'ignore_token'), array($this, 'ignore_token'), $aggregator); 156 156 } 157 157 … … 197 197 if ( strlen($source) > 150000 ) continue; 198 198 $tokens = token_get_all($source); 199 $new_file = $this->walk_tokens($tokens, $replacer, array( &$this, 'unchanged_token'));199 $new_file = $this->walk_tokens($tokens, $replacer, array($this, 'unchanged_token')); 200 200 $f = fopen($filename, 'w'); 201 201 fwrite($f, $new_file); … … 219 219 exit(1); 220 220 } 221 call_user_func_array(array( &$this, $this->commands[$argv[1]]), array_slice($argv, 2));221 call_user_func_array(array($this, $this->commands[$argv[1]]), array_slice($argv, 2)); 222 222 } 223 223 }
Note: See TracChangeset
for help on using the changeset viewer.