Хранилища Subversion ant

Сравнить редакции

Не учитывать пробелы Редакция 374 → Редакция 375

/branches/ant-ng/lib/template.php
29,8 → 29,8
$fh = fopen($this->path.$name, "r");
$content = fread($fh, filesize($this->path.$name));
fclose($fh);
preg_match_all("/({[\d\w]+})/", $content, $matches);
$tmpl = $matches[0];
preg_match_all("/{([\d\w]+)}/", $content, $matches);
$tmpl = $matches[1];
for($i=0;$i<=count($tmpl);$i++) {
$content = str_replace("{".$tmpl[$i]."}", $this->__get($tmpl[$i]), $content);
}