From 90f5e4e2b12f933b4816b01ab5091107766f49f0 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Sat, 29 Jan 2011 16:13:36 +0100 Subject: [PATCH] [ticket/9989] Skip PM popup in overall_header.html, if there are no new PMs. PHPBB3-9989 --- phpBB/styles/prosilver/template/overall_header.html | 9 +++------ phpBB/styles/subsilver2/template/overall_header.html | 7 ++----- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/phpBB/styles/prosilver/template/overall_header.html b/phpBB/styles/prosilver/template/overall_header.html index e537aabf56..009b514e52 100644 --- a/phpBB/styles/prosilver/template/overall_header.html +++ b/phpBB/styles/prosilver/template/overall_header.html @@ -46,12 +46,9 @@ var onload_functions = new Array(); var onunload_functions = new Array(); - - if ({S_NEW_PM}) - { - var url = '{UA_POPUP_PM}'; - window.open(url.replace(/&/g, '&'), '_phpbbprivmsg', 'height=225,resizable=yes,scrollbars=yes, width=400'); - } + + var url = '{UA_POPUP_PM}'; + window.open(url.replace(/&/g, '&'), '_phpbbprivmsg', 'height=225,resizable=yes,scrollbars=yes, width=400'); /** diff --git a/phpBB/styles/subsilver2/template/overall_header.html b/phpBB/styles/subsilver2/template/overall_header.html index 48f6202c4f..be4c7b5b4c 100644 --- a/phpBB/styles/subsilver2/template/overall_header.html +++ b/phpBB/styles/subsilver2/template/overall_header.html @@ -28,11 +28,8 @@