File inc/repo.inc.php changed (mode: 100644) (index 9d8052a..087edcb) |
... |
... |
function rg_repo_edit_high_level($db, &$rg) |
1825 |
1825 |
|
|
1826 |
1826 |
if ($rg['doit'] != 1) { |
if ($rg['doit'] != 1) { |
1827 |
1827 |
if (!$edit) { |
if (!$edit) { |
1828 |
|
// Defaults |
|
1829 |
|
$rg['ri'] = array(); |
|
1830 |
|
$rg['ri']['repo_id'] = '0'; |
|
1831 |
|
$rg['ri']['master'] = '0'; |
|
1832 |
|
$rg['ri']['name'] = ''; |
|
1833 |
|
$rg['ri']['max_commit_size'] = '0'; |
|
1834 |
|
$rg['ri']['description'] = ''; |
|
1835 |
|
$rg['ri']['public'] = '1'; |
|
1836 |
|
$rg['ri']['license'] = ''; |
|
1837 |
|
$rg['ri']['template'] = |
|
1838 |
|
'OS type(s) and version(s)?' . "\n\n" |
|
1839 |
|
. 'Application version(s) affected?' . "\n\n" |
|
1840 |
|
. 'Steps to reproduce?'; |
|
|
1828 |
|
$rg['ri'] = rg_repo_get_default_info(); |
1841 |
1829 |
} |
} |
1842 |
1830 |
break; |
break; |
1843 |
1831 |
} |
} |
|
... |
... |
function rg_repo_api($db, $a) |
2406 |
2394 |
return $ret; |
return $ret; |
2407 |
2395 |
} |
} |
2408 |
2396 |
|
|
|
2397 |
|
/* |
|
2398 |
|
* Produces a dictionary with default values for repository information. |
|
2399 |
|
*/ |
|
2400 |
|
function rg_repo_get_default_info() |
|
2401 |
|
{ |
|
2402 |
|
$ri = array(); |
|
2403 |
|
$ri['repo_id'] = '0'; |
|
2404 |
|
$ri['master'] = '0'; |
|
2405 |
|
$ri['name'] = ''; |
|
2406 |
|
$ri['max_commit_size'] = '0'; |
|
2407 |
|
$ri['description'] = ''; |
|
2408 |
|
$ri['public'] = '1'; |
|
2409 |
|
$ri['license'] = ''; |
|
2410 |
|
$ri['template'] = |
|
2411 |
|
'OS type(s) and version(s)?' . "\n\n" |
|
2412 |
|
. 'Application version(s) affected?' . "\n\n" |
|
2413 |
|
. 'Steps to reproduce?'; |
|
2414 |
|
return $ri; |
|
2415 |
|
} |
|
2416 |
|
|
2409 |
2417 |
/* |
/* |
2410 |
2418 |
* Helper for SSH/GIT/HTTP(S) fetch/push |
* Helper for SSH/GIT/HTTP(S) fetch/push |
2411 |
2419 |
* @host - the host name accessed - may be different than the good one |
* @host - the host name accessed - may be different than the good one |