XOOPS Cube Legacy base repository
Revisão | 60251a7bec0a3f1efdd15394d7de689e07f409a2 (tree) |
---|---|
Hora | 2012-08-02 18:02:11 |
Autor | HIKAWA Kilica <kilica.hikawa@gmai...> |
Commiter | HIKAWA Kilica |
Merge branch 'master' of https://github.com/xoopscube/legacy
@@ -534,9 +534,6 @@ class XCube_DelegateUtils | ||
534 | 534 | { |
535 | 535 | } |
536 | 536 | |
537 | - /** | |
538 | - * @deprecated raiseEvent() | |
539 | - */ | |
540 | 537 | static function call() |
541 | 538 | { |
542 | 539 | $args = func_get_args(); |
@@ -560,6 +557,7 @@ class XCube_DelegateUtils | ||
560 | 557 | } |
561 | 558 | |
562 | 559 | /** |
560 | + * @deprecated Use call() | |
563 | 561 | * @public |
564 | 562 | * @brief [Static] Utility method for calling event-delegates. |
565 | 563 | * |
@@ -86,7 +86,11 @@ class User_LostPass1MailBuilder | ||
86 | 86 | $this->mMailer->assign("ADMINMAIL", $xoopsConfig['adminmail']); |
87 | 87 | $this->mMailer->assign("SITEURL", XOOPS_URL . "/"); |
88 | 88 | $this->mMailer->assign("IP", $_SERVER['REMOTE_ADDR']); |
89 | - $this->mMailer->assign("NEWPWD_LINK", XOOPS_URL . "/lostpass.php?email=" . $user->getShow('email') . "&code=" . substr($user->get("pass"), 0, 5)); | |
89 | + $queryString = http_build_query(array( | |
90 | + 'email' => $user->getShow('email'), | |
91 | + 'code' => substr($user->get("pass"), 0, 5), | |
92 | + )); | |
93 | + $this->mMailer->assign("NEWPWD_LINK", XOOPS_URL . "/lostpass.php?" . $queryString); | |
90 | 94 | } |
91 | 95 | |
92 | 96 | function &getResult() |