"Fossies" - the Fresh Open Source Software Archive

Member "matomo/core/Updates/0.4.4.php" (3 Aug 2022, 704 Bytes) of package /linux/www/matomo-4.11.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 <?php
    2 /**
    3  * Matomo - free/libre analytics platform
    4  *
    5  * @link https://matomo.org
    6  * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
    7  *
    8  */
    9 
   10 namespace Piwik\Updates;
   11 
   12 use Piwik\Piwik;
   13 use Piwik\Updates;
   14 use Piwik\Updater;
   15 
   16 /**
   17  */
   18 class Updates_0_4_4 extends Updates
   19 {
   20     public function doUpdate(Updater $updater)
   21     {
   22         $obsoleteFile = PIWIK_DOCUMENT_ROOT . '/libs/open-flash-chart/php-ofc-library/ofc_upload_image.php';
   23         if (file_exists($obsoleteFile)) {
   24             $rc = @unlink($obsoleteFile);
   25             if (!$rc) {
   26                 throw new \Exception(Piwik::translate('General_ExceptionUndeletableFile', array($obsoleteFile)));
   27             }
   28         }
   29     }
   30 }