Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. diff --git a/show_gravatar.php b/show_gravatar.php
  2. index 94d787a..9f5d99d 100644
  3. --- a/show_gravatar.php
  4. +++ b/show_gravatar.php
  5. @@ -106,7 +106,7 @@ class show_gravatar extends rcube_plugin
  6. $checkbox = new html_checkbox(array('name' => '_'.$option, 'id' => $option, 'value' => 1));
  7.  
  8. $options[$option] = array(
  9. - 'title' => html::label($option, Q($this->gettext($option))),
  10. + 'title' => html::label($option, rcube::Q($this->gettext($option))),
  11. 'content' => $checkbox->show($value?1:0)
  12. );
  13. }
  14. @@ -142,7 +142,7 @@ class show_gravatar extends rcube_plugin
  15.  
  16.  
  17. $options[$option] = array(
  18. - 'title' => html::label($option, Q($this->gettext($option))),
  19. + 'title' => html::label($option, rcube::Q($this->gettext($option))),
  20. 'content' => $select->show($value)
  21. );
  22. }
  23. @@ -158,10 +158,10 @@ class show_gravatar extends rcube_plugin
  24.  
  25. $this->select('gravatar_size', array('16','24','32','48','64','128'), "{$this->default_size}", $options);
  26. $this->select('gravatar_rating',
  27. - array('g' => Q($this->gettext('gravatar_G')),
  28. - 'pg' => Q($this->gettext('gravatar_PG')),
  29. - 'r' => Q($this->gettext('gravatar_R')),
  30. - 'x' => Q($this->gettext('gravatar_X'))
  31. + array('g' => rcube::Q($this->gettext('gravatar_G')),
  32. + 'pg' => rcube::Q($this->gettext('gravatar_PG')),
  33. + 'r' => rcube::Q($this->gettext('gravatar_R')),
  34. + 'x' => rcube::Q($this->gettext('gravatar_X'))
  35. ), $this->default_rating, $options);
  36.  
  37. if (!$this->nativepics) {
  38. @@ -171,7 +171,7 @@ class show_gravatar extends rcube_plugin
  39. 'monsterid' => 'Monsterid',
  40. 'wavatar' => 'Wavatar',
  41. 'mm' => 'Mistery-man',
  42. - '404' => Q($this->gettext('gravatar_none'))
  43. + '404' => rcube::Q($this->gettext('gravatar_none'))
  44. ), $this->default_default, $options);
  45.  
  46. $this->checkbox('gravatar_border', $options);
  47. @@ -180,7 +180,7 @@ class show_gravatar extends rcube_plugin
  48. if ($args['section'] == 'mailview') {
  49.  
  50. $args['blocks']['gravatar'] = array(
  51. - 'name' => Q($this->gettext('gravatars')),
  52. + 'name' => rcube::Q($this->gettext('gravatars')),
  53. 'options' => $options
  54. );
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement