Download core/Updates/0.4.4.php from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 698 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/core/Updates/0.4.4.php
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/core/Updates/0.4.4.php
-
curl -L -o 0.4.4.php https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/core/Updates/0.4.4.php
698 Bytes
| /** | |
| * Matomo - free/libre analytics platform | |
| * | |
| * @link https://matomo.org | |
| * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later | |
| */ | |
| namespace Piwik\Updates; | |
| use Piwik\Piwik; | |
| use Piwik\Updates; | |
| use Piwik\Updater; | |
| class Updates_0_4_4 extends Updates | |
| { | |
| public function doUpdate(Updater $updater) | |
| { | |
| $obsoleteFile = PIWIK_DOCUMENT_ROOT . '/libs/open-flash-chart/php-ofc-library/ofc_upload_image.php'; | |
| if (file_exists($obsoleteFile)) { | |
| $rc = @unlink($obsoleteFile); | |
| if (!$rc) { | |
| throw new \Exception(Piwik::translate('General_ExceptionUndeletableFile', array($obsoleteFile))); | |
| } | |
| } | |
| } | |
| } | |