@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -define('_AM_XMF_MODULE_NOTFOUND','Please install or reactivate %1$s module. Minimum version required: %2$s'); |
|
4 | -define('_AM_XMF_MODULE_VERSION','Minimum %1$s module version required: %2$s (your version is %3$s)'); |
|
3 | +define('_AM_XMF_MODULE_NOTFOUND', 'Please install or reactivate %1$s module. Minimum version required: %2$s'); |
|
4 | +define('_AM_XMF_MODULE_VERSION', 'Minimum %1$s module version required: %2$s (your version is %3$s)'); |
|
5 | 5 | define('_AM_XMF_MODULE_INSTALLED', 'The module \'%s\' is installed!'); |
6 | 6 | define('_AM_XMF_MODULE_NOT_INSTALLED', 'The module \'%s\' is not installed!'); |
7 | 7 | |
8 | -define('_DB_XMF_TABLE_IS_NOT_DEFINED','Table is not defined'); |
|
8 | +define('_DB_XMF_TABLE_IS_NOT_DEFINED', 'Table is not defined'); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | define("_MONTHDAY", "n/j G:i"); |
31 | 31 | define("_YEARMONTHDAY", "Y/n/j G:i"); |
32 | 32 | define("_ELAPSE", "%s ago"); |
33 | -define("_TIMEFORMAT_DESC", "Valid formats: \"s\" - " . _SHORTDATESTRING . "; \"m\" - " . _MEDIUMDATESTRING . "; \"l\" - " . _DATESTRING . ";<br />" . "\"c\" or \"custom\" - format determined according to interval to present; \"e\" - Elapsed; \"mysql\" - Y-m-d H:i:s;<br />" . "specified string - Refer to <a href=\"http://php.net/manual/en/function.date.php\" rel=\"external\">PHP manual</a>."); |
|
33 | +define("_TIMEFORMAT_DESC", "Valid formats: \"s\" - "._SHORTDATESTRING."; \"m\" - "._MEDIUMDATESTRING."; \"l\" - "._DATESTRING.";<br />"."\"c\" or \"custom\" - format determined according to interval to present; \"e\" - Elapsed; \"mysql\" - Y-m-d H:i:s;<br />"."specified string - Refer to <a href=\"http://php.net/manual/en/function.date.php\" rel=\"external\">PHP manual</a>."); |
|
34 | 34 | define("_TIMEZONE_SET", "Europe/London"); |
35 | 35 | |
36 | 36 | /** |
@@ -68,11 +68,11 @@ discard block |
||
68 | 68 | foreach ($res as $item) { |
69 | 69 | $date[] = array('date' => $item['date']); |
70 | 70 | $items[] = array('date' => XoopsLocale::formatTimestamp($item['date'], 'rss'), |
71 | - 'title' => $myts->htmlSpecialChars($item['title']), |
|
72 | - 'content' => $myts->htmlSpecialChars($item['content']), |
|
73 | - 'link' => $item['link'], |
|
74 | - 'guid' => $item['link'], |
|
75 | - ); |
|
71 | + 'title' => $myts->htmlSpecialChars($item['title']), |
|
72 | + 'content' => $myts->htmlSpecialChars($item['content']), |
|
73 | + 'link' => $item['link'], |
|
74 | + 'guid' => $item['link'], |
|
75 | + ); |
|
76 | 76 | } |
77 | 77 | } |
78 | 78 | } else { |
@@ -84,11 +84,11 @@ discard block |
||
84 | 84 | foreach ($res as $item) { |
85 | 85 | $date[] = array('date' => $item['date']); |
86 | 86 | $items[] = array('date' => XoopsLocale::formatTimestamp($item['date'], 'rss'), |
87 | - 'title' => $myts->htmlSpecialChars($item['title']), |
|
88 | - 'content' => $myts->htmlSpecialChars($item['content']), |
|
89 | - 'link' => $item['link'], |
|
90 | - 'guid' => $item['link'], |
|
91 | - ); |
|
87 | + 'title' => $myts->htmlSpecialChars($item['title']), |
|
88 | + 'content' => $myts->htmlSpecialChars($item['content']), |
|
89 | + 'link' => $item['link'], |
|
90 | + 'guid' => $item['link'], |
|
91 | + ); |
|
92 | 92 | } |
93 | 93 | } |
94 | 94 | } |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | */ |
24 | 24 | |
25 | 25 | |
26 | -require __DIR__ . '/mainfile.php'; |
|
26 | +require __DIR__.'/mainfile.php'; |
|
27 | 27 | |
28 | 28 | $xoops = Xoops::getInstance(); |
29 | 29 | $xoops->disableErrorReporting(); |
@@ -36,13 +36,13 @@ discard block |
||
36 | 36 | mb_http_output('pass'); |
37 | 37 | } |
38 | 38 | header('Content-Type:text/xml; charset=utf-8'); |
39 | -$dirname = $xoops->isModule() ? $xoops->module->getVar('dirname'): 'system'; |
|
39 | +$dirname = $xoops->isModule() ? $xoops->module->getVar('dirname') : 'system'; |
|
40 | 40 | $tpl = new XoopsTpl(); |
41 | 41 | $tpl->caching = 2; |
42 | 42 | $tpl->cache_lifetime = 3600; |
43 | -if (!$tpl->isCached('module:' . $dirname . '/system_rss.tpl')) { |
|
43 | +if (!$tpl->isCached('module:'.$dirname.'/system_rss.tpl')) { |
|
44 | 44 | $tpl->assign('channel_title', $myts->htmlSpecialChars($xoops->getConfig('sitename'))); |
45 | - $tpl->assign('channel_link', $xoops_url . '/'); |
|
45 | + $tpl->assign('channel_link', $xoops_url.'/'); |
|
46 | 46 | $tpl->assign('channel_desc', $myts->htmlSpecialChars($xoops->getConfig('slogan'))); |
47 | 47 | $tpl->assign('channel_lastbuild', XoopsLocale::formatTimestamp(time(), 'rss')); |
48 | 48 | $tpl->assign('channel_webmaster', $xoops->checkEmail($xoops->getConfig('adminmail'), true)); |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | /* @var $plugin SystemPluginInterface */ |
65 | 65 | $plugin = Xoops\Module\Plugin::getPlugin($dirname, 'system'); |
66 | 66 | $res = $plugin->backend(10); |
67 | - if (is_array($res) && count($res)>0) { |
|
67 | + if (is_array($res) && count($res) > 0) { |
|
68 | 68 | foreach ($res as $item) { |
69 | 69 | $date[] = array('date' => $item['date']); |
70 | 70 | $items[] = array('date' => XoopsLocale::formatTimestamp($item['date'], 'rss'), |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | /* @var $plugin SystemPluginInterface */ |
81 | 81 | foreach ($plugins as $plugin) { |
82 | 82 | $res = $plugin->backend(10); |
83 | - if (is_array($res) && count($res)>0) { |
|
83 | + if (is_array($res) && count($res) > 0) { |
|
84 | 84 | foreach ($res as $item) { |
85 | 85 | $date[] = array('date' => $item['date']); |
86 | 86 | $items[] = array('date' => XoopsLocale::formatTimestamp($item['date'], 'rss'), |
@@ -97,4 +97,4 @@ discard block |
||
97 | 97 | $tpl->assign('items', $items); |
98 | 98 | |
99 | 99 | } |
100 | -$tpl->display('module:' . $dirname . '/system_rss.tpl'); |
|
100 | +$tpl->display('module:'.$dirname.'/system_rss.tpl'); |
@@ -61,7 +61,7 @@ |
||
61 | 61 | $keyName = '', |
62 | 62 | $identifierName = '' |
63 | 63 | ) { |
64 | - if ($db===null) { |
|
64 | + if ($db === null) { |
|
65 | 65 | $this->db2 = \Xoops\Core\Database\Factory::getConnection(); |
66 | 66 | $db = $this->db2; |
67 | 67 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * @version $Id$ |
23 | 23 | */ |
24 | 24 | |
25 | -include __DIR__ . '/mainfile.php'; |
|
25 | +include __DIR__.'/mainfile.php'; |
|
26 | 26 | $xoops = Xoops::getInstance(); |
27 | 27 | $xoops_url = \XoopsBaseConfig::get('url'); |
28 | 28 | $xoops->events()->triggerEvent('core.pmlite.start'); |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | $msg_id = isset($_GET['msg_id']) ? (int)($_GET['msg_id']) : 0; |
36 | 36 | |
37 | 37 | if (empty($_GET['refresh']) && isset($_POST['op']) && $_POST['op'] !== "submit") { |
38 | - $jump = "pmlite.php?refresh=" . time(); |
|
38 | + $jump = "pmlite.php?refresh=".time(); |
|
39 | 39 | if ($send == 1) { |
40 | 40 | $jump .= "&send={$send}"; |
41 | 41 | } else { |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | } |
49 | 49 | } |
50 | 50 | } |
51 | - header('location: ' . $jump); |
|
51 | + header('location: '.$jump); |
|
52 | 52 | exit(); |
53 | 53 | } |
54 | 54 | |
@@ -64,8 +64,8 @@ discard block |
||
64 | 64 | $tpl = new XoopsTpl(); |
65 | 65 | if ($count != 1) { |
66 | 66 | $error_message = XoopsLocale::E_SELECTED_USER_DOES_NOT_EXIST; |
67 | - $error_message .= "<br />" . XoopsLocale::E_GO_BACK_AND_TRY_AGAIN; |
|
68 | - $error_message .= "<br />[ <a href='javascript:history.go(-1)'>" . XoopsLocale::GO_BACK . "</a> ]"; |
|
67 | + $error_message .= "<br />".XoopsLocale::E_GO_BACK_AND_TRY_AGAIN; |
|
68 | + $error_message .= "<br />[ <a href='javascript:history.go(-1)'>".XoopsLocale::GO_BACK."</a> ]"; |
|
69 | 69 | $tpl->assign('error_message', $error_message); |
70 | 70 | } else { |
71 | 71 | if ($xoops->security()->check()) { |
@@ -81,19 +81,19 @@ discard block |
||
81 | 81 | $pm->setVar("from_userid", $xoops->user->getVar("uid")); |
82 | 82 | if (!$pm_handler->insert($pm)) { |
83 | 83 | $error_message = $pm->getHtmlErrors(); |
84 | - $error_message .= "<br /><a href='javascript:history.go(-1)'>" . XoopsLocale::GO_BACK . "</a>"; |
|
84 | + $error_message .= "<br /><a href='javascript:history.go(-1)'>".XoopsLocale::GO_BACK."</a>"; |
|
85 | 85 | $tpl->assign('error_message', $error_message); |
86 | 86 | } else { |
87 | 87 | // @todo: Send notification email if user has selected this in the profile |
88 | 88 | $info_message = XoopsLocale::S_MESSAGED_HAS_BEEN_POSTED; |
89 | 89 | $info_message .= "<br />"; |
90 | - $info_message .= "<br /><a href=\"javascript:window.opener.location='" . $xoops_url . "/viewpmsg.php';window.close();\">" . XoopsLocale::CLICK_HERE_TO_VIEW_YOU_PRIVATE_MESSAGES . "</a>"; |
|
91 | - $info_message .= "<br /><br /><a href=\"javascript:window.close();\">" . XoopsLocale::OR_CLICK_HERE_TO_CLOSE_WINDOW . "</a>"; |
|
90 | + $info_message .= "<br /><a href=\"javascript:window.opener.location='".$xoops_url."/viewpmsg.php';window.close();\">".XoopsLocale::CLICK_HERE_TO_VIEW_YOU_PRIVATE_MESSAGES."</a>"; |
|
91 | + $info_message .= "<br /><br /><a href=\"javascript:window.close();\">".XoopsLocale::OR_CLICK_HERE_TO_CLOSE_WINDOW."</a>"; |
|
92 | 92 | $tpl->assign('info_message', $info_message); |
93 | 93 | } |
94 | 94 | } else { |
95 | 95 | $error_message = implode('<br />', $xoops->security()->getErrors()); |
96 | - $error_message .= "<br /><a href=\"javascript:window.close();\">" . XoopsLocale::OR_CLICK_HERE_TO_CLOSE_WINDOW . "</a>"; |
|
96 | + $error_message .= "<br /><a href=\"javascript:window.close();\">".XoopsLocale::OR_CLICK_HERE_TO_CLOSE_WINDOW."</a>"; |
|
97 | 97 | $tpl->assign('error_message', $error_message); |
98 | 98 | } |
99 | 99 | } |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | $pm_uname = XoopsUser::getUnameFromId($pm->getVar("from_userid")); |
111 | 111 | $message = "[quote]\n"; |
112 | 112 | $message .= sprintf(XoopsLocale::CF_WROTE, $pm_uname); |
113 | - $message .= "\n" . $pm->getVar("msg_text", "E") . "\n[/quote]"; |
|
113 | + $message .= "\n".$pm->getVar("msg_text", "E")."\n[/quote]"; |
|
114 | 114 | } else { |
115 | 115 | unset($pm); |
116 | 116 | $reply = 0; |
@@ -123,8 +123,8 @@ discard block |
||
123 | 123 | |
124 | 124 | if ($reply == 1) { |
125 | 125 | $subject = $pm->getVar('subject', 'E'); |
126 | - if (!preg_match("/^" . XoopsLocale::C_RE . "/i", $subject)) { |
|
127 | - $subject = XoopsLocale::C_RE . ' ' . $subject; |
|
126 | + if (!preg_match("/^".XoopsLocale::C_RE."/i", $subject)) { |
|
127 | + $subject = XoopsLocale::C_RE.' '.$subject; |
|
128 | 128 | } |
129 | 129 | $form->addElement(new Xoops\Form\Label(XoopsLocale::C_TO, $pm_uname)); |
130 | 130 | $form->addElement(new Xoops\Form\Hidden('to_userid', $pm->getVar("from_userid"))); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * @version $Id$ |
22 | 22 | */ |
23 | 23 | |
24 | -include __DIR__ . '/mainfile.php'; |
|
24 | +include __DIR__.'/mainfile.php'; |
|
25 | 25 | $xoops = Xoops::getInstance(); |
26 | 26 | $xoops->events()->triggerEvent('core.lostpass.start'); |
27 | 27 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | $xoopsMailer->setTemplate("lostpass2.tpl"); |
55 | 55 | $xoopsMailer->assign("SITENAME", $xoops->getConfig('sitename')); |
56 | 56 | $xoopsMailer->assign("ADMINMAIL", $xoops->getConfig('adminmail')); |
57 | - $xoopsMailer->assign("SITEURL", $xoops_url . "/"); |
|
57 | + $xoopsMailer->assign("SITEURL", $xoops_url."/"); |
|
58 | 58 | $xoopsMailer->assign("IP", $_SERVER['REMOTE_ADDR']); |
59 | 59 | $xoopsMailer->assign("NEWPWD", $newpass); |
60 | 60 | $xoopsMailer->setToUsers($userObject); |
@@ -79,9 +79,9 @@ discard block |
||
79 | 79 | $xoopsMailer->setTemplate("lostpass1.tpl"); |
80 | 80 | $xoopsMailer->assign("SITENAME", $xoops->getConfig('sitename')); |
81 | 81 | $xoopsMailer->assign("ADMINMAIL", $xoops->getConfig('adminmail')); |
82 | - $xoopsMailer->assign("SITEURL", $xoops_url . "/"); |
|
82 | + $xoopsMailer->assign("SITEURL", $xoops_url."/"); |
|
83 | 83 | $xoopsMailer->assign("IP", $_SERVER['REMOTE_ADDR']); |
84 | - $xoopsMailer->assign("NEWPWD_LINK", $xoops_url . "/lostpass.php?email=" . $email . "&code=" . $areyou); |
|
84 | + $xoopsMailer->assign("NEWPWD_LINK", $xoops_url."/lostpass.php?email=".$email."&code=".$areyou); |
|
85 | 85 | $xoopsMailer->setToUsers($userObject); |
86 | 86 | $xoopsMailer->setFromEmail($xoops->getConfig('adminmail')); |
87 | 87 | $xoopsMailer->setFromName($xoops->getConfig('sitename')); |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * @author Kazumi Ono <[email protected]> |
26 | 26 | */ |
27 | 27 | |
28 | -include __DIR__ . '/mainfile.php'; |
|
28 | +include __DIR__.'/mainfile.php'; |
|
29 | 29 | |
30 | 30 | $xoops = Xoops::getInstance(); |
31 | 31 | $xoops_url = \XoopsBaseConfig::get('url'); |
@@ -58,12 +58,12 @@ discard block |
||
58 | 58 | $xoops->theme()->addMeta( |
59 | 59 | 'meta', |
60 | 60 | 'keywords', |
61 | - XoopsLocale::USERNAME . ", " . XoopsLocale::PASSWORD . ", " . XoopsLocale::Q_LOST_YOUR_PASSWORD |
|
61 | + XoopsLocale::USERNAME.", ".XoopsLocale::PASSWORD.", ".XoopsLocale::Q_LOST_YOUR_PASSWORD |
|
62 | 62 | ); |
63 | 63 | $xoops->theme()->addMeta( |
64 | 64 | 'meta', |
65 | 65 | 'description', |
66 | - XoopsLocale::Q_LOST_YOUR_PASSWORD . " " . XoopsLocale::NO_PROBLEM_ENTER_EMAIL_WE_HAVE_ON_FILE |
|
66 | + XoopsLocale::Q_LOST_YOUR_PASSWORD." ".XoopsLocale::NO_PROBLEM_ENTER_EMAIL_WE_HAVE_ON_FILE |
|
67 | 67 | ); |
68 | 68 | $xoops->tpl()->assign('lang_login', XoopsLocale::A_LOGIN); |
69 | 69 | $xoops->tpl()->assign('lang_username', XoopsLocale::C_USERNAME); |
@@ -91,11 +91,11 @@ discard block |
||
91 | 91 | } |
92 | 92 | } |
93 | 93 | if (!$isExternal) { |
94 | - header('Location: ' . $redirect); |
|
94 | + header('Location: '.$redirect); |
|
95 | 95 | exit(); |
96 | 96 | } |
97 | 97 | } |
98 | - header('Location: ' . $xoops_url . '/userinfo.php?uid=' . $xoopsUser->getVar('uid')); |
|
98 | + header('Location: '.$xoops_url.'/userinfo.php?uid='.$xoopsUser->getVar('uid')); |
|
99 | 99 | exit(); |
100 | 100 | } |
101 | 101 | |
@@ -106,8 +106,8 @@ discard block |
||
106 | 106 | if ($xoops->isUser()) { |
107 | 107 | $xoops->getHandlerOnline()->destroy($xoops->user->getVar('uid')); |
108 | 108 | } |
109 | - $message = XoopsLocale::S_YOU_ARE_NOW_LOGGED_OUT . '<br />' . XoopsLocale::S_THANK_YOU_FOR_VISITING_OUR_SITE; |
|
110 | - $xoops->redirect($xoops_url . '/', 1, $message); |
|
109 | + $message = XoopsLocale::S_YOU_ARE_NOW_LOGGED_OUT.'<br />'.XoopsLocale::S_THANK_YOU_FOR_VISITING_OUR_SITE; |
|
110 | + $xoops->redirect($xoops_url.'/', 1, $message); |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | if ($op === 'delete') { |
@@ -120,12 +120,12 @@ discard block |
||
120 | 120 | // users in the webmasters group may not be deleted |
121 | 121 | $xoops->redirect('user.php', 5, XoopsLocale::E_USER_IN_WEBMASTER_GROUP_CANNOT_BE_REMOVED); |
122 | 122 | } |
123 | - if (!(bool) $ok) { |
|
123 | + if (!(bool)$ok) { |
|
124 | 124 | $xoops->header(); |
125 | 125 | echo $xoops->confirm( |
126 | 126 | array('op' => 'delete', 'ok' => 1), |
127 | 127 | 'user.php', |
128 | - XoopsLocale::Q_ARE_YOU_SURE_TO_DELETE_ACCOUNT . '<br/>' . XoopsLocale::THIS_WILL_REMOVE_ALL_YOUR_INFO |
|
128 | + XoopsLocale::Q_ARE_YOU_SURE_TO_DELETE_ACCOUNT.'<br/>'.XoopsLocale::THIS_WILL_REMOVE_ALL_YOUR_INFO |
|
129 | 129 | ); |
130 | 130 | $xoops->footer(); |
131 | 131 | } else { |
@@ -18,11 +18,11 @@ |
||
18 | 18 | $usergroups = $GLOBALS['xoopsUser']->getGroups(); |
19 | 19 | $result_upload = array_intersect($usergroups, $allowed_groups_upload); |
20 | 20 | if ($result_upload || $result_upload!=null) { |
21 | - $upload_files=true; |
|
21 | + $upload_files=true; |
|
22 | 22 | } |
23 | - $result_createfolder = array_intersect($usergroups, $allowed_groups_createfolder); |
|
24 | - if ($result_createfolder || $result_createfolder!=null) { |
|
25 | - $create_folders=true; |
|
23 | + $result_createfolder = array_intersect($usergroups, $allowed_groups_createfolder); |
|
24 | + if ($result_createfolder || $result_createfolder!=null) { |
|
25 | + $create_folders=true; |
|
26 | 26 | } |
27 | 27 | } |
28 | 28 | // XOOPS |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | // YOU CAN COPY AND CHANGE THESE VARIABLES IN FOLDERS config.php FILES |
5 | 5 | //------------------------------------------------------------------------------ |
6 | 6 | // $image_max_width=0; |
7 | -$image_max_width=1000; |
|
7 | +$image_max_width = 1000; |
|
8 | 8 | |
9 | 9 | // XOOPS |
10 | 10 | global $xoopsUser; |
@@ -12,17 +12,17 @@ discard block |
||
12 | 12 | // 2 : members |
13 | 13 | // 3 : anonymous |
14 | 14 | // 4 : your new group |
15 | -$allowed_groups_upload=array(1,2); // id des groupes autorisés en upload |
|
16 | -$allowed_groups_createfolder=array(1); // id des groupes autorisés create folder |
|
15 | +$allowed_groups_upload = array(1, 2); // id des groupes autorisés en upload |
|
16 | +$allowed_groups_createfolder = array(1); // id des groupes autorisés create folder |
|
17 | 17 | if ($xoopsUser) { |
18 | 18 | $usergroups = $GLOBALS['xoopsUser']->getGroups(); |
19 | 19 | $result_upload = array_intersect($usergroups, $allowed_groups_upload); |
20 | - if ($result_upload || $result_upload!=null) { |
|
21 | - $upload_files=true; |
|
20 | + if ($result_upload || $result_upload != null) { |
|
21 | + $upload_files = true; |
|
22 | 22 | } |
23 | 23 | $result_createfolder = array_intersect($usergroups, $allowed_groups_createfolder); |
24 | - if ($result_createfolder || $result_createfolder!=null) { |
|
25 | - $create_folders=true; |
|
24 | + if ($result_createfolder || $result_createfolder != null) { |
|
25 | + $create_folders = true; |
|
26 | 26 | } |
27 | 27 | } |
28 | 28 | // XOOPS |
@@ -21,14 +21,14 @@ discard block |
||
21 | 21 | * @version $Id$ |
22 | 22 | */ |
23 | 23 | |
24 | -include __DIR__ . '/mainfile.php'; |
|
24 | +include __DIR__.'/mainfile.php'; |
|
25 | 25 | |
26 | 26 | $xoops = Xoops::getInstance(); |
27 | 27 | $xoops->events()->triggerEvent('core.viewpmsg.start'); |
28 | 28 | |
29 | 29 | if (!$xoops->isUser()) { |
30 | - $errormessage = XoopsLocale::E_YOU_ARE_NOT_REGISTERED . "<br />" |
|
31 | - . XoopsLocale::E_REGISTER_FIRST_TO_SEND_PRIVATE_MESSAGES . ""; |
|
30 | + $errormessage = XoopsLocale::E_YOU_ARE_NOT_REGISTERED."<br />" |
|
31 | + . XoopsLocale::E_REGISTER_FIRST_TO_SEND_PRIVATE_MESSAGES.""; |
|
32 | 32 | $xoops->redirect("user.php", 2, $errormessage); |
33 | 33 | } else { |
34 | 34 | $pm_handler = $xoops->getHandlerPrivateMessage(); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | $clean_msg_id = array_map("intval", $clean_msg_id); |
55 | 55 | } |
56 | 56 | $size = count($clean_msg_id); |
57 | - $msg =& $clean_msg_id; |
|
57 | + $msg = & $clean_msg_id; |
|
58 | 58 | for ($i = 0; $i < $size; ++$i) { |
59 | 59 | $pm = $pm_handler->get((int)($msg[$i])); |
60 | 60 | if ($pm->getVar('to_userid') == $xoops->user->getVar('uid')) { |