cvs: pear /I18Nv2 Locale.php
| From: | Michael Wallner | Date: | Mon, 21 Feb 2005 13:48:15 +0000 |
| Subject: | cvs: pear /I18Nv2 Locale.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-29617@lists.php.net to get a copy of this message | ||
mike Mon Feb 21 08:48:15 2005 EDT
Modified files:
/pear/I18Nv2 Locale.php
Log:
* missed returns
http://cvs.php.net/diff.php/pear/I18Nv2/Locale.php?r1=1.29&r2=1.30&ty=u
Index: pear/I18Nv2/Locale.php
diff -u pear/I18Nv2/Locale.php:1.29 pear/I18Nv2/Locale.php:1.30
--- pear/I18Nv2/Locale.php:1.29 Mon Feb 21 08:44:04 2005
+++ pear/I18Nv2/Locale.php Mon Feb 21 08:48:13 2005
@@ -11,7 +11,7 @@
// | Copyright (c) 2004 Michael Wallner <mike@iworks.at> |
// +----------------------------------------------------------------------+
//
-// $Id: Locale.php,v 1.29 2005/02/21 13:44:04 mike Exp $
+// $Id: Locale.php,v 1.30 2005/02/21 13:48:13 mike Exp $
/**
* I18Nv2::Locale
@@ -47,7 +47,7 @@
* I18Nv2_Locale
*
* @author Michael Wallner <mike@php.net>
- * @version $Revision: 1.29 $
+ * @version $Revision: 1.30 $
* @access public
* @package I18Nv2
*/
@@ -750,8 +750,9 @@
$format = isset($overrideFormat) ?
$this->timeFormats[$overrideFormat] : $this->currentTimeFormat;
$this->paranoid and setLocale(LC_ALL, $this->usedLocale);
- $date = strftime($format, isset($timestamp) ? $timestamp : time());
+ $time = strftime($format, isset($timestamp) ? $timestamp : time());
$this->paranoid and setLocale(LC_ALL, 'C');
+ return $time;
}
/**
@@ -800,6 +801,7 @@
$this->paranoid and setLocale(LC_ALL, $this->usedLocale);
$date = strftime('%x', isset($timestamp) ? $timestamp : time());
$this->paranoid and setLocale(LC_ALL, 'C');
+ return $date;
}
/**