fixed a minor bug in subversionmodel

This commit is contained in:
hyung-hwan 2010-06-30 08:20:23 +00:00
parent ed15ad09ab
commit 5e8c9698d0
5 changed files with 16 additions and 12 deletions

View File

@ -87,7 +87,10 @@ class SubversionModel extends Model
$fileinfo['type'] = 'dir';
$fileinfo['size'] = 0;
$fileinfo['created_rev'] = $info[0]['revision'];
$fileinfo['last_author'] = $info[0]['last_changed_author'];
if (array_key_exists ('last_changed_author', $info[0]) === FALSE)
$fileinfo['last_author'] = '';
else
$fileinfo['last_author'] = $info[0]['last_changed_author'];
$fileinfo['content'] = $list;
$fileinfo['logmsg'] = (count($log) > 0)? $log[0]['msg']: '';
return $fileinfo;

View File

@ -11,7 +11,7 @@
<script type="text/javascript">
function AsciiToHex (x) {
var r="";
var r="";
for(i=0; i<x.length; i++)
{
var tmp = x.charCodeAt(i).toString(16);
@ -78,7 +78,9 @@ $this->load->view (
),
'ctxmenuitems' => array (
array ("project/create", $this->lang->line('New'), 'project_catalog_new')
array ("project/create",
$this->lang->line('New'),
'project_catalog_new')
)
)
);

View File

@ -29,7 +29,7 @@ $this->load->view (
),
'ctxmenuitems' => array ()
)
)
);
?>
<!---------------------------------------------------------------------------->

View File

@ -24,20 +24,20 @@ $site->name = '';
$site->text = '';
$this->load->view (
'projectbar',
array (
'projectbar',
array (
'banner' => $this->lang->line('Administration'),
'page' => array (
'type' => 'site',
'id' => 'catalog',
'site' => $site,
),
),
'ctxmenuitems' => array (
'ctxmenuitems' => array (
array ('site/create', $this->lang->line('New'))
)
)
)
);
?>
@ -67,6 +67,5 @@ foreach ($sites as $site)
</div> <!-- site_catalog_content -->
</body>
</html>

View File

@ -26,10 +26,10 @@ $this->load->view (
'type' => 'site',
'id' => 'catalog',
'site' => $site,
),
),
'ctxmenuitems' => array ()
)
)
);
?>
<!---------------------------------------------------------------------------->