diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-11-28 11:27:25 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-11-28 11:27:25 -0800 |
commit | eb010554ff963a1f73661bf96d99697abb7dfde4 (patch) | |
tree | cabf85c2dc223cfbb2f649b1c45adfe04ba3e70a /modules/gallery/helpers/MY_html.php | |
parent | 76b6daefaa4009fdd8de72b8f25259200a66d477 (diff) |
Replace self::func() with <helper_name>::func() for all public APIs
and constants to make overloading easier. Fixes #1510.
Diffstat (limited to 'modules/gallery/helpers/MY_html.php')
-rw-r--r-- | modules/gallery/helpers/MY_html.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gallery/helpers/MY_html.php b/modules/gallery/helpers/MY_html.php index cf130401..d15bd816 100644 --- a/modules/gallery/helpers/MY_html.php +++ b/modules/gallery/helpers/MY_html.php @@ -26,7 +26,7 @@ class html extends html_Core { * unescaped HTML which is assumed to be safe. * * Example:<pre> - * <div><?= html::clean($php_var) ?> + * <div><?= html::clean($php_var) ?> * </pre> */ static function clean($html) { @@ -39,7 +39,7 @@ class html extends html_Core { * only non-malicious HTML. * * Example:<pre> - * <div><?= html::purify($item->title) ?> + * <div><?= html::purify($item->title) ?> * </pre> */ static function purify($html) { @@ -86,6 +86,6 @@ class html extends html_Core { * @return the string escaped for use in HTML attributes. */ static function clean_attribute($string) { - return self::clean($string)->for_html_attr(); + return html::clean($string)->for_html_attr(); } } |