Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 /**
  * 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;
 }