mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-11 01:33:51 -04:00
Replace self::func() with <helper_name>::func() for all public APIs
and constants to make overloading easier. Fixes #1510.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user