cvs: pear /I18Nv2 Negotiator.php
| From: | Michael Wallner | Date: | Sun, 14 Mar 2004 15:12:06 +0000 |
| Subject: | cvs: pear /I18Nv2 Negotiator.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-17400@lists.php.net to get a copy of this message | ||
mike Sun Mar 14 10:12:06 2004 EDT
Modified files:
/pear/I18Nv2 Negotiator.php
Log:
* removed parenthesis from iclude/require_once statements
* its createors are actually singletons, so renamed from create to single
http://cvs.php.net/diff.php/pear/I18Nv2/Negotiator.php?r1=1.2&r2=1.3&ty=u
Index: pear/I18Nv2/Negotiator.php
diff -u pear/I18Nv2/Negotiator.php:1.2 pear/I18Nv2/Negotiator.php:1.3
--- pear/I18Nv2/Negotiator.php:1.2 Sun Mar 14 10:00:27 2004
+++ pear/I18Nv2/Negotiator.php Sun Mar 14 10:12:06 2004
@@ -16,7 +16,7 @@
// | Michael Wallner <mike@iworks.at> |
// +----------------------------------------------------------------------+
//
-// $Id: Negotiator.php,v 1.2 2004/03/14 15:00:27 mike Exp $
+// $Id: Negotiator.php,v 1.3 2004/03/14 15:12:06 mike Exp $
/**
* I18Nv2::Negotiator
@@ -31,7 +31,7 @@
* @author Naoki Shima <murahachibu@php.net>
* @author Wolfram Kriesing <wk@visionp.de>
* @author Michael Wallner <mike@php.net>
-* @version $Revision: 1.2 $
+* @version $Revision: 1.3 $
* @access public
* @package I18Nv2
*/
@@ -43,7 +43,7 @@
* @var object
* @access public
*/
- var $I18Nv2Lang = null;
+ var $I18NLang = null;
/**
* I18Nv2_Country
@@ -164,7 +164,7 @@
$lang = $sub;
} else {
$lang = $pri;
- $this->createI18NCountry();
+ $this->singleI18NCountry();
if ($this->I18NCountry->isValidCode($sub)) {
$this->_country[$lang][] = strToUpper($sub);
} else {
@@ -301,7 +301,7 @@
*/
function getCountryName($code)
{
- $this->createI18NCountry();
+ $this->singleI18NCountry();
return $this->I18NCountry->getName($code);
}
@@ -314,7 +314,7 @@
*/
function getLanguageName($code)
{
- $this->createI18NLanguage();
+ $this->singleI18NLanguage();
return $this->I18NLang->getName($code);
}
@@ -324,10 +324,10 @@
* @access public
* @return object
*/
- function &createI18NLanguage()
+ function &singleI18NLanguage()
{
if (!isset($this->I18NLang)) {
- include_once('I18Nv2/Language.php');
+ include_once 'I18Nv2/Language.php';
$this->I18NLang = &new I18Nv2_Language();
}
return $this->I18NLang;
@@ -339,10 +339,10 @@
* @access public
* @return object
*/
- function &createI18NCountry()
+ function &singleI18NCountry()
{
if (!isset($this->I18NCountry)) {
- include_once('I18Nv2/Country.php');
+ include_once 'I18Nv2/Country.php';
$this->I18NCountry = &new I18Nv2_Country();
}
return $this->I18NCountry;