getAutoUpdateMakeWritableMessage() публичный статический Метод

Returns the help message when the auto update can't run because of missing permissions
public static getAutoUpdateMakeWritableMessage ( ) : string
Результат string
Пример #1
0
 public function newVersionAvailable()
 {
     Piwik::checkUserHasSuperUserAccess();
     $this->checkNewVersionIsAvailableOrDie();
     $newVersion = $this->updater->getLatestVersion();
     $view = new View('@CoreUpdater/newVersionAvailable');
     $this->addCustomLogoInfo($view);
     $this->setBasicVariablesView($view);
     $view->piwik_version = Version::VERSION;
     $view->piwik_new_version = $newVersion;
     $incompatiblePlugins = $this->getIncompatiblePlugins($newVersion);
     $marketplacePlugins = array();
     try {
         if (!empty($incompatiblePlugins)) {
             $marketplace = new Marketplace();
             $marketplacePlugins = $marketplace->getAllAvailablePluginNames();
         }
     } catch (\Exception $e) {
     }
     $view->marketplacePlugins = $marketplacePlugins;
     $view->incompatiblePlugins = $incompatiblePlugins;
     $view->piwik_latest_version_url = $this->updater->getArchiveUrl($newVersion);
     $view->can_auto_update = Filechecks::canAutoUpdate();
     $view->makeWritableCommands = Filechecks::getAutoUpdateMakeWritableMessage();
     return $view->render();
 }
Пример #2
0
 public function newVersionAvailable()
 {
     Piwik::checkUserIsSuperUser();
     $newVersion = $this->checkNewVersionIsAvailableOrDie();
     $view = new View('@CoreUpdater/newVersionAvailable');
     $view->piwik_version = Version::VERSION;
     $view->piwik_new_version = $newVersion;
     $view->piwik_latest_version_url = self::getLatestZipUrl($newVersion);
     $view->can_auto_update = Filechecks::canAutoUpdate();
     $view->makeWritableCommands = Filechecks::getAutoUpdateMakeWritableMessage();
     return $view->render();
 }