mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 07:18:08 +02:00
[ticket/11103] Declare $ for jQuery, check for instance of, newlines at eof
PHPBB3-11103
This commit is contained in:
@@ -518,7 +518,7 @@ class phpbb_notification_manager
|
||||
|
||||
$class = $this->get_item_type_class($class_name);
|
||||
|
||||
if ($class->is_available() && method_exists($class_name, 'get_item_type'))
|
||||
if ($class instanceof phpbb_notification_type_interface && $class->is_available() && method_exists($class_name, 'get_item_type'))
|
||||
{
|
||||
$options = array_merge(array(
|
||||
'id' => $class_name::get_item_type(),
|
||||
@@ -556,7 +556,7 @@ class phpbb_notification_manager
|
||||
|
||||
$method = $this->get_method_class($class_name);
|
||||
|
||||
if ($method->is_available())
|
||||
if ($method instanceof phpbb_notification_method_interface && $method->is_available())
|
||||
{
|
||||
$subscription_methods[] = $method_name;
|
||||
}
|
||||
|
@@ -15,6 +15,8 @@
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
<!-- IF S_NOTIFICATIONS_DISPLAY -->
|
||||
(function($) { // Avoid conflicts with other libraries
|
||||
|
||||
$(document).click(function(e) {
|
||||
var target = e.target;
|
||||
|
||||
@@ -22,6 +24,8 @@ $(document).click(function(e) {
|
||||
$('#notification_list').hide();
|
||||
}
|
||||
});
|
||||
|
||||
})(jQuery); // Avoid conflicts with other libraries
|
||||
<!-- ENDIF -->
|
||||
// ]]>
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user