mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-18 23:42:17 +00:00
- Added permission basis/phrase to dump.sql
- The function getAuthUID() present in the helper fhcauth_helper.php now tries to work always with CI session to get the uid - REST_controller doesn't need anymore to handle the uid - FHC_Controller and FHC_Model load fhcauth_helper in their constructor, so any class that extends them now could call the function getAuthUID() anywhere in the code - The controllers don't need anymore to pass the uid to the models or to the libraries - Library FHC_DB_ACL load fhcauth_helper in its constructor and uses getAuthID()
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
<?php
|
||||
if (! defined('BASEPATH'))
|
||||
exit('No direct script access allowed');
|
||||
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
/**
|
||||
* Name: Messaging Library for FH-Complete
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
class MessageLib
|
||||
{
|
||||
private $recipients = array();
|
||||
|
||||
public function __construct($params = null)
|
||||
public function __construct()
|
||||
{
|
||||
$this->ci =& get_instance();
|
||||
|
||||
$this->ci->config->load('message');
|
||||
|
||||
$this->ci->load->model('system/Message_model', 'MessageModel');
|
||||
@@ -21,22 +21,10 @@ class MessageLib
|
||||
$this->ci->load->model('system/Recipient_model', 'RecipientModel');
|
||||
$this->ci->load->model('system/Attachment_model', 'AttachmentModel');
|
||||
|
||||
if (is_array($params) && isset($params['uid']))
|
||||
{
|
||||
$this->ci->load->library('VorlageLib', array('uid' => $params['uid']));
|
||||
$this->ci->MessageModel->setUID($params['uid']);
|
||||
$this->ci->MsgStatusModel->setUID($params['uid']);
|
||||
$this->ci->RecipientModel->setUID($params['uid']);
|
||||
$this->ci->AttachmentModel->setUID($params['uid']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ci->load->library('VorlageLib');
|
||||
}
|
||||
$this->ci->load->library('VorlageLib');
|
||||
|
||||
//$this->ci->load->helper('language');
|
||||
$this->ci->lang->load('message');
|
||||
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user