public function saveLayoutAsDefault()
    {
        $this->checkTokenInUrl();

        if (Piwik::hasUserSuperUserAccess()) {
            $layout = Common::unsanitizeInputValue(Common::getRequestVar('layout'));
            $layout = strip_tags($layout);
            $this->getModel()->createOrUpdateDashboard('', '1', $layout);
        }
    }
public function saveLayoutAsDefault()
    {
        $this->checkTokenInUrl();

        if (Piwik::hasUserSuperUserAccess()) {
            $layout = Common::unsanitizeInputValue(Common::getRequestVar('layout'));
            $layout = strip_tags($layout);
            $this->getModel()->createOrUpdateDashboard('', '1', $layout);
        }
    }
public function saveLayoutAsDefault ( ) { $ this -> checkTokenInUrl ( ) ; if ( Piwik :: hasUserSuperUserAccess ( ) ) { $ layout = Common :: unsanitizeInputValue ( Common :: getRequestVar ( 'layout' ) ) ; $ layout = strip_tags ( $ layout ) ; $ this -> getModel ( ) -> createOrUpdateDashboard ( '' , '1' , $ layout ) ; } }
Saves the layout as default
Saves the layout as default