Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrobocoder <anthon.pang@gmail.com>2010-10-28 22:21:55 +0400
committerrobocoder <anthon.pang@gmail.com>2010-10-28 22:21:55 +0400
commit5a02ef6b6a66e47796a2a111918f613f13341fae (patch)
treecbf975c77a8f435d959697dd01c2feee28c1f742 /core/Translate.php
parent7e11ec5205bacdba2d01faa10b8779a4bcbdbc38 (diff)
peephole optimization to singletons, i.e., new self vs. $c = __CLASS__; new $c
git-svn-id: http://dev.piwik.org/svn/trunk@3270 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Translate.php')
-rw-r--r--core/Translate.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/Translate.php b/core/Translate.php
index 4a722f41d8..59561f218e 100644
--- a/core/Translate.php
+++ b/core/Translate.php
@@ -24,9 +24,8 @@ class Piwik_Translate
static public function getInstance()
{
if (self::$instance == null)
- {
- $c = __CLASS__;
- self::$instance = new $c();
+ {
+ self::$instance = new self;
}
return self::$instance;
}