Changeset 1295 in ExiteCMS for trunk/includes/core_functions.php


Ignore:
Timestamp:
02/20/08 23:47:36 (4 years ago)
Author:
hverton
Message:

added an admin module to edit the 404 pages
fixed error in viewthread.php that caused the country flag of the superadmin to be displayed for every post author
fixed calculation error in datediff() when displaying the time difference within 24 hours
fixed HTML error in admin.custom_pages.tpl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core_functions.php

    r1291 r1295  
    762762    if ($difference < 60) { 
    763763        // if difference is less than 60 seconds, seconds is a good interval of choice 
    764         $interval = "h"; 
     764        $interval = "s"; 
    765765    } elseif ($difference >= 60 && $difference<60*60) { 
    766766        // if difference is between 60 seconds and 60 minutes, minutes is a good interval 
     
    824824        case "h": 
    825825            $datediff = floor($difference / 60 / 60); 
     826            $difference =  $difference - $datediff * 60 * 60; 
    826827            $res .= sprintf("%02d:", $datediff); 
    827828 
    828829        case "n": 
    829830            $datediff = floor($difference / 60); 
     831            $difference =  $difference - $datediff * 60; 
    830832            $res .= sprintf("%02d:", $datediff); 
    831833 
Note: See TracChangeset for help on using the changeset viewer.