Browse code

changed git repository URL from hardcoded to variable

Bernd Wurst authored on 19/03/2012 13:50:16
Showing 1 changed files
... ...
@@ -41,8 +41,8 @@ foreach ($repos as $repo => $settings) {
41 41
   $public = isset($settings['users']['gitweb']) && $settings['users']['gitweb'] == 'R';
42 42
   $public_string = '';
43 43
   if ($public) {
44
-    $public_url = 'http://git.schokokeks.org/'.$repo.'.git';
45
-    $git_url = 'git://git.schokokeks.org/'.$repo.'.git';
44
+    $public_url = 'http://'.config('gitserver').'/'.$repo.'.git';
45
+    $git_url = 'git://'.config('gitserver').'/'.$repo.'.git';
46 46
     $public_string = '<br />(Öffentlicher Lesezugriff über <a href="'.$public_url.'">'.$public_url.'</a> und '.$git_url.')';
47 47
   }
48 48
   output("<div><p><strong>{$repo}</strong> ".internal_link('edit', icon_edit('Zugriffsrechte bearbeiten'), 'repo='.$repo)." ".internal_link('delete', icon_delete('Repository löschen'), 'repo='.$repo)."{$description}<br />push-Adresse: {$url} {$public_string}</p><ul>");