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['type'] = 'dir';
$fileinfo['size'] = 0; $fileinfo['size'] = 0;
$fileinfo['created_rev'] = $info[0]['revision']; $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['content'] = $list;
$fileinfo['logmsg'] = (count($log) > 0)? $log[0]['msg']: ''; $fileinfo['logmsg'] = (count($log) > 0)? $log[0]['msg']: '';
return $fileinfo; return $fileinfo;

View File

@ -11,7 +11,7 @@
<script type="text/javascript"> <script type="text/javascript">
function AsciiToHex (x) { function AsciiToHex (x) {
var r=""; var r="";
for(i=0; i<x.length; i++) for(i=0; i<x.length; i++)
{ {
var tmp = x.charCodeAt(i).toString(16); var tmp = x.charCodeAt(i).toString(16);
@ -78,7 +78,9 @@ $this->load->view (
), ),
'ctxmenuitems' => array ( '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 () 'ctxmenuitems' => array ()
) )
); );
?> ?>
<!----------------------------------------------------------------------------> <!---------------------------------------------------------------------------->

View File

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

View File

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