diff options
author | robocoder <anthon.pang@gmail.com> | 2010-01-02 13:21:42 +0300 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2010-01-02 13:21:42 +0300 |
commit | 89a21a927082b41ea20f10cd352a3c769ea0a188 (patch) | |
tree | db2211d1bfa08dea40ae5a9e7b6485fcb22d986d /core/Updater.php | |
parent | ef5b2c738d7d65b423a1c98252abb042bcc2de5a (diff) |
refs #1097 - exclude development environments; translate exception messages
more php docs
git-svn-id: http://dev.piwik.org/svn/trunk@1757 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Updater.php')
-rw-r--r-- | core/Updater.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/Updater.php b/core/Updater.php index ac2c31d112..37afc3f36c 100644 --- a/core/Updater.php +++ b/core/Updater.php @@ -80,6 +80,18 @@ class Piwik_Updater } /** + * Component has a new version? + * + * @param string $componentName + * @return bool TRUE if compoment is to be updated; FALSE if not + */ + public function hasNewVersion($componentName) + { + return isset($this->componentsWithNewVersion) && + isset($this->componentsWithNewVersion[$componentName]); + } + + /** * Update the named component * * @param string $name |