From a65e949fefc86be87118238ccde7b6a55c29b0be Mon Sep 17 00:00:00 2001 From: jhunkeler Date: Sat, 16 Jan 2010 22:40:46 +0000 Subject: Looks like I'm about to break something terribly, so it's time to save. Initial rewrite of drill displays -jhunk Truncated date display for service records -OC git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@461 c5b2fb0a-d05d-0410-98c8-828840a80ff6 --- modules/rudi/includes/common.class.php | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'modules/rudi/includes/common.class.php') diff --git a/modules/rudi/includes/common.class.php b/modules/rudi/includes/common.class.php index 21c7ccc..ab8120e 100644 --- a/modules/rudi/includes/common.class.php +++ b/modules/rudi/includes/common.class.php @@ -199,6 +199,7 @@ class RUDI_Common public function __construct() { + decho("Constructing " . get_parent_class($this)); global $config, $db; $this->images_path = $config['rudi']['images_path']; @@ -210,7 +211,7 @@ class RUDI_Common public function __destruct() { - + decho("Destructing " . get_parent_class($this)); } /** @@ -264,9 +265,9 @@ class RUDI_Common $m_mod = NULL; $d_mod = NULL; - if($test['years'] > 1) + if($test['years'] > 1 || $test['years'] < 1) $y_mod = 's'; - if($test['months'] > 1) + if($test['months'] > 1 || $test['months'] < 1) $m_mod = 's'; if($test['days'] > 1 && $test['days'] < 1) $d_mod = 's'; @@ -674,7 +675,7 @@ class RUDI_Common rank_short}.png"; ?>" alt="rank_short; ?>" /> - last_name . ', ' . $member->first_name; ?> + last_name . ', ' . $member->first_name; ?> \ No newline at end of file -- cgit