blocking_error call performed on the current caller class
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Wed, 21 Nov 2012 09:25:37 +0000 (10:25 +0100)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Wed, 21 Nov 2012 09:25:37 +0000 (10:25 +0100)
TODO.txt
web/Obj/user.phh

index db40800..a701f1c 100644 (file)
--- a/TODO.txt
+++ b/TODO.txt
@@ -3,7 +3,6 @@
 
   MAJOR |
  -------+
-   - BUG: access with password from 2 diff browsers place the first in a strict loop
    - BUG: pari + 72 non fa 4x ma attualmente fa 3x, da correggere
    - BUG: some connection to the named socket fails
    - log_legal address fix
@@ -12,6 +11,8 @@
 
   MINOR |
  -------+
+   - BUG: access with password from 2 diff browsers the second go in strange "page not found" 
+     in the first tentative, the second works
    - try to be more antivirus-friendly
    - centralize all '<script ...' incapsulation to allow multiple transport system.
    - packetize and automatize php-ancillary and apache module
@@ -23,6 +24,9 @@
   DONE |
  ------+
 
+   DONE - BUG: access with password from 2 diff browsers place the first in a strict loop (the 
+          problem was a call to a static parent method instead of the overrided child method,
+          substitute self:: with the dynamically get class::)
    TEST - BUG: lurker are logged out (and remain a pending socket opened (look the spush log)
    TEST - garbage management
 
index e195019..aed566f 100644 (file)
@@ -643,6 +643,7 @@ class User {
 
   public static function stream_fini($init_string, $is_unrecoverable)
 {
+    $cla = get_called_class();
     printf("xXx user::stream_fini\n");
 
     // IF IFRAME THEN:
@@ -662,7 +663,7 @@ window.onload = function () { if (xynt_streaming != \"ready\") { xynt_streaming.
     $body .= sprintf("<script id='hs%d' type='text/javascript'><!--
 push(\"%s\");
 // -->
-</script>", 0, escpush(self::blocking_error($is_unrecoverable)) );
+</script>", 0, escpush($cla::blocking_error($is_unrecoverable)) );
     // ELSE IF XHR THEN:
     // return (self::blocking_error($is_unrecoverable));
     return ($body);