Fix missing version number in config directive, and add TODO item.
[htmlpurifier/darkodev.git] / svn.php
blobcdfc586c4a686a29e37d9267604f8ce5276f2eea
1 <?php
3 function my_svn_info($dir) {
4 $raw = explode("\n", shell_exec("svn info $dir"));
5 $svn_info = array();
6 foreach ($raw as $r) {
7 if (empty($r)) continue;
8 list($k, $v) = explode(': ', $r, 2);
9 $svn_info[$k] = $v;
11 return $svn_info;