From c44fdb25ba51dd26cf59b93ea0edb88331510aab Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Wed, 21 Nov 2012 16:40:39 +0100 Subject: [PATCH] proper way to fix static inheritance bug --- web/Obj/user.phh | 6 +++--- web/briskin5/Obj/briskin5.phh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/Obj/user.phh b/web/Obj/user.phh index aed566f..70441e8 100644 --- a/web/Obj/user.phh +++ b/web/Obj/user.phh @@ -481,7 +481,7 @@ class User { /* INDEX_RD_IFRA PORT */ - protected function blocking_error($is_unrecoverable) + static function blocking_error($is_unrecoverable) { log_crit("BLOCKING_ERROR UNREC: ".($is_unrecoverable ? "TRUE" : "FALSE")); return (sprintf(($is_unrecoverable ? 'xstm.stop(); ' : '').'window.onbeforeunload = null; window.onunload = null; document.location.assign("index.php");')); @@ -663,9 +663,9 @@ window.onload = function () { if (xynt_streaming != \"ready\") { xynt_streaming. $body .= sprintf("", 0, escpush($cla::blocking_error($is_unrecoverable)) ); +", 0, escpush(static::blocking_error($is_unrecoverable)) ); // ELSE IF XHR THEN: - // return (self::blocking_error($is_unrecoverable)); + // return (static::blocking_error($is_unrecoverable)); return ($body); } diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index 356c579..8280fd3 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -614,7 +614,7 @@ class Bin5_user extends User { return ($ret); } - protected function blocking_error($is_unrecoverable) + static function blocking_error($is_unrecoverable) { log_crit("BLOCKING_ERROR UNREC: ".($is_unrecoverable ? "TRUE" : "FALSE")); return (sprintf(($is_unrecoverable ? 'xstm.stop(); ' : '').'window.onbeforeunload = null; window.onunload = null; document.location.assign("../index.php");')); -- 2.17.1