コード例 #1
0
ファイル: 2.0.4-b8.php プロジェクト: josl/CGE-File-Sharing
 private static function migrateBrandingConfig(Config $config)
 {
     $useCustomLogo = self::getValueAndDelete($config, 'branding', 'use_custom_logo');
     $customLogo = new CustomLogo();
     $useCustomLogo ? $customLogo->enable() : $customLogo->disable();
 }
コード例 #2
0
ファイル: Controller.php プロジェクト: carriercomm/piwik
 public function setGeneralSettings()
 {
     Piwik::checkUserHasSuperUserAccess();
     $response = new ResponseBuilder(Common::getRequestVar('format'));
     try {
         $this->checkTokenInUrl();
         $this->saveGeneralSettings();
         $customLogo = new CustomLogo();
         if (Common::getRequestVar('useCustomLogo', '0')) {
             $customLogo->enable();
         } else {
             $customLogo->disable();
         }
         $toReturn = $response->getResponse();
     } catch (Exception $e) {
         $toReturn = $response->getResponseException($e);
     }
     return $toReturn;
 }
コード例 #3
0
ファイル: API.php プロジェクト: piwik/piwik
 /**
  * @internal
  */
 public function setBrandingSettings($useCustomLogo)
 {
     Piwik::checkUserHasSuperUserAccess();
     $customLogo = new CustomLogo();
     if ($useCustomLogo) {
         $customLogo->enable();
     } else {
         $customLogo->disable();
     }
     return true;
 }