Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

E_STRICT warnings

git-svn-id: http://svn.php.net/repository/pear/packages/Translation2/trunk@252086 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit 20bf2fa73332683c1202e0abc9b3bb71241ced95 1 parent 612f6eb
@quipo quipo authored
Showing with 8 additions and 8 deletions.
  1. +2 −2 Container.php
  2. +6 −6 Translation2.php
View
4 Container.php
@@ -275,7 +275,7 @@ function fetchLangs()
*
* @return array
*/
- function getPage($pageID, $langID)
+ function getPage($pageID = null, $langID = null)
{
return $this->raiseError('method "getPage" not supported',
TRANSLATION_ERROR_METHOD_NOT_SUPPORTED);
@@ -311,7 +311,7 @@ function getOne($stringID, $pageID = null, $langID = null)
*
* @return string
*/
- function getStringID($string, $pageID)
+ function getStringID($string, $pageID = null)
{
return $this->raiseError('method "getStringID" not supported',
TRANSLATION_ERROR_METHOD_NOT_SUPPORTED);
View
12 Translation2.php
@@ -30,7 +30,7 @@
* @category Internationalization
* @package Translation2
* @author Lorenzo Alberton <l.alberton@quipo.it>
- * @copyright 2004-2007 Lorenzo Alberton
+ * @copyright 2004-2008 Lorenzo Alberton
* @license http://www.debian.org/misc/bsd.license BSD License (3 Clause)
* @version CVS: $Id$
* @link http://pear.php.net/package/Translation2
@@ -74,7 +74,7 @@
* @category Internationalization
* @package Translation2
* @author Lorenzo Alberton <l.alberton@quipo.it>
- * @copyright 2004-2007 Lorenzo Alberton
+ * @copyright 2004-2008 Lorenzo Alberton
* @license http://www.debian.org/misc/bsd.license BSD License (3 Clause)
* @link http://pear.php.net/package/Translation2
*/
@@ -150,7 +150,7 @@ function Translation2()
*/
function & factory($driver, $options = '', $params = array())
{
- $tr =& new Translation2;
+ $tr = new Translation2;
$tr->storage = Translation2::_storageFactory($driver, $options);
if (PEAR::isError($tr->storage)) {
return $tr->storage;
@@ -179,7 +179,7 @@ function & _storageFactory($driver, $options = '')
$storage_path = 'Translation2/Container/'.strtolower($driver).'.php';
$storage_class = 'Translation2_Container_'.strtolower($driver);
include_once $storage_path;
- $storage =& new $storage_class;
+ $storage = new $storage_class;
$err = $storage->init($options);
if (PEAR::isError($err)) {
return $err;
@@ -261,9 +261,9 @@ function & getDecorator($decorator)
include_once $decorator_path;
if (func_num_args() > 1) {
$obj = func_get_arg(1);
- $new_decorator =& new $decorator_class($obj);
+ $new_decorator = new $decorator_class($obj);
} else {
- $new_decorator =& new $decorator_class($this);
+ $new_decorator = new $decorator_class($this);
}
return $new_decorator;
}
Please sign in to comment.
Something went wrong with that request. Please try again.