mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 22:57:14 +02:00
Code cleanup
This commit is contained in:
@@ -881,7 +881,7 @@ class private_msg_ui extends e_admin_ui
|
||||
|
||||
}
|
||||
|
||||
public function beforeCreate($new_data)
|
||||
public function beforeCreate($new_data, $old_data)
|
||||
{
|
||||
|
||||
if(empty($new_data['pm_to']))
|
||||
|
@@ -386,8 +386,15 @@ class private_message
|
||||
|
||||
$template = $PM_NOTIFY;
|
||||
*/
|
||||
if(THEME_LEGACY){include_once(THEME.'pm_template.php');}
|
||||
if (!$PM_NOTIFY){$PM_NOTIFY = e107::getTemplate('pm', 'pm', 'notify');}
|
||||
if(THEME_LEGACY)
|
||||
{
|
||||
include_once(THEME.'pm_template.php');
|
||||
}
|
||||
|
||||
if(empty($PM_NOTIFY))
|
||||
{
|
||||
$PM_NOTIFY = e107::getTemplate('pm', 'pm', 'notify');
|
||||
}
|
||||
|
||||
if(empty($PM_NOTIFY)) // BC Fallback.
|
||||
{
|
||||
@@ -858,7 +865,7 @@ class private_message
|
||||
ignore_user_abort(true);
|
||||
$data_len = filesize($filename);
|
||||
if ($seek > ($data_len - 1)) $seek = 0;
|
||||
$res =& fopen($filename, 'rb');
|
||||
$res = fopen($filename, 'rb');
|
||||
if ($seek)
|
||||
{
|
||||
fseek($res , $seek);
|
||||
|
Reference in New Issue
Block a user