* changed the string comparison callback for usort
* changed the date and time display in log pages
This commit is contained in:
parent
cd032f6b60
commit
b368b1e520
@ -51,13 +51,12 @@ else
|
|||||||
{
|
{
|
||||||
function comp_files ($a, $b)
|
function comp_files ($a, $b)
|
||||||
{
|
{
|
||||||
if ($a->tag == $b->tag)
|
$cmp = strcmp ($b->tag, $a->tag);
|
||||||
|
if ($cmp == 0)
|
||||||
{
|
{
|
||||||
return ($a->name > $b->name)? -1:
|
return strcmp ($a->name, $b->name);
|
||||||
($a->name < $b->name)? 1: 0;
|
|
||||||
}
|
}
|
||||||
|
return $cmp;
|
||||||
return ($a->tag < $b->tag)? 1: -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
usort ($files, 'comp_files');
|
usort ($files, 'comp_files');
|
||||||
|
@ -162,8 +162,10 @@ $this->load->view (
|
|||||||
{
|
{
|
||||||
$code = $log['message'];
|
$code = $log['message'];
|
||||||
|
|
||||||
$date = substr($code['time'], 0, 10);
|
//$date = substr($code['time'], 0, 10);
|
||||||
$time = substr($code['time'], 11, 5);
|
//$time = substr($code['time'], 11, 5);
|
||||||
|
$date = date ('Y-m-d', strtotime($log['createdon']));
|
||||||
|
$time = date ('h:i', strtotime($log['createdon']));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -105,7 +105,8 @@ $this->load->view (
|
|||||||
|
|
||||||
print '<tr class="odd">';
|
print '<tr class="odd">';
|
||||||
print '<td class="date">';
|
print '<td class="date">';
|
||||||
print substr($x['time'], 5, 5);
|
//print substr($x['time'], 5, 5);
|
||||||
|
print date ('m-d', strtotime($log['createdon']));
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td class="object">';
|
print '<td class="object">';
|
||||||
print anchor (
|
print anchor (
|
||||||
|
@ -101,7 +101,8 @@ foreach ($latest_projects as $project)
|
|||||||
|
|
||||||
print '<tr class="odd">';
|
print '<tr class="odd">';
|
||||||
print '<td class="date">';
|
print '<td class="date">';
|
||||||
print substr($x['time'], 5, 5);
|
//print substr($x['time'], 5, 5);
|
||||||
|
print date ('m-d', strtotime($log['createdon']));
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td class="projectid">';
|
print '<td class="projectid">';
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user