diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2007-08-25 00:27:48 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2007-08-25 00:27:48 +0400 |
commit | 68b5cb3b902024d66c36c1f106c5f272ac57d7fa (patch) | |
tree | bc955fc3dbc61d4cf2bf0612c770d31c3e6a8666 /libs/PEAR.php | |
parent | 4699079d2edfe0ea11e3035e9b260c7d8182e119 (diff) |
- Translation
- filter to name the columns
- API for the modules actions, provider, UserCountry, Visitfrquency, visitinterest, time,
- HALF of the api for referers
- improved XML export nwo using PEAR xml serializer
git-svn-id: http://dev.piwik.org/svn/trunk@49 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'libs/PEAR.php')
-rwxr-xr-x | libs/PEAR.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/PEAR.php b/libs/PEAR.php index fc879a0a78..f14d8a06f1 100755 --- a/libs/PEAR.php +++ b/libs/PEAR.php @@ -227,7 +227,7 @@ class PEAR * @return mixed A reference to the variable. If not set it will be * auto initialised to NULL. */ - function &getStaticProperty($class, $var) + static function &getStaticProperty($class, $var) { static $properties; if (!isset($properties[$class])) { @@ -278,7 +278,7 @@ class PEAR */ function isError($data, $code = null) { - if (is_a($data, 'PEAR_Error')) { + if ($data instanceof PEAR_Error) { if (is_null($code)) { return true; } elseif (is_string($code)) { @@ -521,7 +521,7 @@ class PEAR * @see PEAR::setErrorHandling * @since PHP 4.0.5 */ - function &raiseError($message = null, + static function &raiseError($message = null, $code = null, $mode = null, $options = null, @@ -566,10 +566,10 @@ class PEAR $ec = 'PEAR_Error'; } if ($skipmsg) { - $a = &new $ec($code, $mode, $options, $userinfo); + $a = new $ec($code, $mode, $options, $userinfo); return $a; } else { - $a = &new $ec($message, $code, $mode, $options, $userinfo); + $a = new $ec($message, $code, $mode, $options, $userinfo); return $a; } } |