2011-11-12 Junichi Satoh <junichi@rworks.jp>
* general/logon_ok.php: Fixed bad representation that __('ago') is shown when "Timestamp or time comparation" is set to timestamp. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5130 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
42d5e7adfb
commit
ef3d04df1b
|
@ -1,3 +1,8 @@
|
|||
2011-11-12 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* general/logon_ok.php: Fixed bad representation that __('ago') is
|
||||
shown when "Timestamp or time comparation" is set to timestamp.
|
||||
|
||||
2011-11-11 Dario Rodriguez <dario.rodriguez@artica.es>
|
||||
|
||||
* godmode/setup/gis_step_2.php: Fixed a small bug with a button.
|
||||
|
|
|
@ -49,9 +49,14 @@ switch ($config["dbtype"]) {
|
|||
$news = db_get_all_rows_sql ($sql);
|
||||
if ($news !== false) {
|
||||
echo '<table cellpadding="4" cellspacing="4" class="databox">';
|
||||
if ($config["prominent_time"] == "timestamp") {
|
||||
$comparation_suffix = "";
|
||||
} else {
|
||||
$comparation_suffix = __('ago');
|
||||
}
|
||||
foreach ($news as $article) {
|
||||
echo '<tr><th><b>'.$article["subject"].'</b></th></tr>';
|
||||
echo '<tr><td>'.__('by').' <b>'.$article["author"].'</b> <i>' . ui_print_timestamp ($article["timestamp"], true).'</i> ' . __('ago') . '</td></tr>';
|
||||
echo '<tr><td>'.__('by').' <b>'.$article["author"].'</b> <i>' . ui_print_timestamp ($article["timestamp"], true).'</i> ' . $comparation_suffix . '</td></tr>';
|
||||
echo '<tr><td class="datos">';
|
||||
echo nl2br ($article["text"]);
|
||||
echo '</td></tr>';
|
||||
|
|
Loading…
Reference in New Issue