/** * getPageReturnURL * * @return array */ protected function getPageReturnURL() { $url = array(); switch (\XLite\Core\Request::getInstance()->action) { case 'restore_from_uploaded_file': case 'restore_from_local_file': $url[] = '<a href="' . $this->buildURL('db_restore') . '">' . static::t('Return to admin interface') . '</a>'; break; default: $url = parent::getPageReturnURL(); } return $url; }
/** * getPageReturnURL * * @return array */ protected function getPageReturnURL() { $url = array(); if ('backup' == \XLite\Core\Request::getInstance()->action) { $url[] = '<a href="' . $this->buildURL('db_backup') . '">' . static::t('Return to admin interface') . '</a>'; } else { $url = parent::getPageReturnURL(); } return $url; }