1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +02:00

Code cleanup

This commit is contained in:
Cameron
2020-12-05 14:13:18 -08:00
parent d37d4bf8af
commit 09fb747374
30 changed files with 125 additions and 89 deletions

View File

@@ -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);