Adding require_once otherwise message constants wouldn't be loaded see #5195

skala
Julio Montoya 13 years ago
parent 8e51659e7c
commit a620a12cf0
  1. 1
      main/inc/lib/message.lib.php
  2. 3
      main/inc/lib/social.lib.php

@ -25,6 +25,7 @@ define('MESSAGE_STATUS_OUTBOX', '4');
define('MESSAGE_STATUS_INVITATION_PENDING', '5'); define('MESSAGE_STATUS_INVITATION_PENDING', '5');
define('MESSAGE_STATUS_INVITATION_ACCEPTED', '6'); define('MESSAGE_STATUS_INVITATION_ACCEPTED', '6');
define('MESSAGE_STATUS_INVITATION_DENIED', '7'); define('MESSAGE_STATUS_INVITATION_DENIED', '7');
/** /**
* Class * Class
* @package chamilo.library * @package chamilo.library

@ -17,6 +17,9 @@ define('SOCIAL_RIGHT_PLUGIN', 3);
define('CUT_GROUP_NAME', 50); define('CUT_GROUP_NAME', 50);
//This require is necessary becas we use constants that need to be loaded before the SocialManager class
require_once api_get_path(LIBRARY_PATH).'message.lib.php';
/** /**
* *
* @package chamilo.social * @package chamilo.social

Loading…
Cancel
Save