3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
14 * @copyright CiviCRM LLC https://civicrm.org/licensing
18 * The default container is just a basic container which can be configured via
21 class CRM_Extension_Container_Default
extends CRM_Extension_Container_Basic
{
28 public function checkRequirements() {
31 // In current configuration, we don't construct the default container
32 // unless baseDir is set, so this error condition is more theoretical.
33 if (empty($this->baseDir
) ||
!is_dir($this->baseDir
)) {
34 $civicrmDestination = urlencode(CRM_Utils_System
::url('civicrm/admin/extensions', 'reset=1'));
35 $url = CRM_Utils_System
::url('civicrm/admin/setting/path', "reset=1&civicrmDestination=${civicrmDestination}");
37 'title' => ts('Invalid Base Directory'),
38 'message' => ts('The extensions directory is not properly set. Please go to the <a href="%1">path setting page</a> and correct it.<br/>',
45 if (empty($this->baseUrl
)) {
46 $civicrmDestination = urlencode(CRM_Utils_System
::url('civicrm/admin/extensions', 'reset=1'));
47 $url = CRM_Utils_System
::url('civicrm/admin/setting/url', "reset=1&civicrmDestination=${civicrmDestination}");
49 'title' => ts('Invalid Base URL'),
50 'message' => ts('The extensions URL is not properly set. Please go to the <a href="%1">URL setting page</a> and correct it.<br/>',