jonnybradley | 30 Jul 2012 14:12
Picon

[Tikiwiki-cvs/svn] SF.net SVN: tikiwiki:[42498] branches/9.x/lib/smarty_tiki/function. user_registration.php

Revision: 42498
          http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=42498&view=rev
Author:   jonnybradley
Date:     2012-07-30 12:12:07 +0000 (Mon, 30 Jul 2012)
Log Message:
-----------
[FIX] registration: "Call to undefined method ErrorReportLib::error()" (more damage from r42474 -
testing is good)

Revision Links:
--------------
    http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=42474&view=rev

Modified Paths:
--------------
    branches/9.x/lib/smarty_tiki/function.user_registration.php

Modified: branches/9.x/lib/smarty_tiki/function.user_registration.php
===================================================================
--- branches/9.x/lib/smarty_tiki/function.user_registration.php	2012-07-30 11:39:53 UTC (rev 42497)
+++ branches/9.x/lib/smarty_tiki/function.user_registration.php	2012-07-30 12:12:07 UTC (rev 42498)
 <at>  <at>  -18,7 +18,7  <at>  <at> 
 	$smarty->assign('_PROMPT_PASS', sprintf($_VALID, tra("password"),
$registrationlib->merged_prefs['min_pass_length'], "0-9,a-z,A-Z"));
 	$smarty->assign('min_username_length', $registrationlib->merged_prefs['min_username_length']);
 	$smarty->assign('min_pass_length', $registrationlib->merged_prefs['min_pass_length']);
-	if (is_a($registrationlib->merged_prefs, "RegistrationError")) $errorreportlib->error($registrationlib->merged_prefs->msg);
+	if (is_a($registrationlib->merged_prefs, "RegistrationError")) $errorreportlib->report($registrationlib->merged_prefs->msg);
 	$smarty->assignByRef('merged_prefs', $registrationlib->merged_prefs);
 	$smarty->assign('allowRegister', 'y'); // Used for OpenID associations
(Continue reading)

Robert Plummer | 31 Jul 2012 02:17
Picon
Gravatar

Re: [Tikiwiki-cvs/svn] SF.net SVN: tikiwiki:[42498] branches/9.x/lib/smarty_tiki/function. user_registration.php

Perhaps we should then create a few tests for it?  If they are created, how shall one use them? Again, sorry about the damage, I will gladly fix any of these if you let me know.

Thanks again for your hard work.

On Mon, Jul 30, 2012 at 8:12 AM, <jonnybradley-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org> wrote:
Revision: 42498
          http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=42498&view=rev
Author:   jonnybradley
Date:     2012-07-30 12:12:07 +0000 (Mon, 30 Jul 2012)
Log Message:
-----------
[FIX] registration: "Call to undefined method ErrorReportLib::error()" (more damage from r42474 - testing is good)

Revision Links:
--------------
    http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=42474&view=rev

Modified Paths:
--------------
    branches/9.x/lib/smarty_tiki/function.user_registration.php

Modified: branches/9.x/lib/smarty_tiki/function.user_registration.php
===================================================================
--- branches/9.x/lib/smarty_tiki/function.user_registration.php 2012-07-30 11:39:53 UTC (rev 42497)
+++ branches/9.x/lib/smarty_tiki/function.user_registration.php 2012-07-30 12:12:07 UTC (rev 42498)
<at> <at> -18,7 +18,7 <at> <at>
        $smarty->assign('_PROMPT_PASS', sprintf($_VALID, tra("password"), $registrationlib->merged_prefs['min_pass_length'], "0-9,a-z,A-Z"));
        $smarty->assign('min_username_length', $registrationlib->merged_prefs['min_username_length']);
        $smarty->assign('min_pass_length', $registrationlib->merged_prefs['min_pass_length']);
-       if (is_a($registrationlib->merged_prefs, "RegistrationError")) $errorreportlib->error($registrationlib->merged_prefs->msg);
+       if (is_a($registrationlib->merged_prefs, "RegistrationError")) $errorreportlib->report($registrationlib->merged_prefs->msg);
        $smarty->assignByRef('merged_prefs', $registrationlib->merged_prefs);
        $smarty->assign('allowRegister', 'y'); // Used for OpenID associations
        $smarty->assign('openid_associate', 'n');
<at> <at> -55,7 +55,7 <at> <at>
                $cookie_name = $prefs['session_cookie_name'];

                if ( ini_get('session.use_cookie') && ! isset( $_COOKIE[$cookie_name] ) )
-                       $errorreportlib->error(tra("You have to enable cookies to be able to login to this site"));
+                       $errorreportlib->report(tra("You have to enable cookies to be able to login to this site"));

                $smarty->assign('errortype', 'no_redirect_login');

<at> <at> -63,10 +63,10 <at> <at>

                if (is_array($result)) {
                        foreach ($result as $r) {
-                               $errorreportlib->error($r->msg);
+                               $errorreportlib->report($r->msg);
                        }
                } else if (is_a($result, 'RegistrationError')) {
-                       TikiLib::lib('errorreport')->report($result->msg);
+                       $errorreportlib->report($result->msg);
                } else if (is_string($result)) {
                        return $result;
                } elseif (!empty($result['msg'])) {

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Tikiwiki-cvs mailing list
Tikiwiki-cvs-5NWGOfrQmnc@public.gmane.orgurceforge.net
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs



--
Robert Plummer
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Tikiwiki-cvs mailing list
Tikiwiki-cvs@...
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs

Gmane