Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix nos-static method issues #1458

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ application/config/config.php
application/config/database.php
application/config/encryption.php
tests/phpunit/phpunit.xml
/nbproject/
8 changes: 4 additions & 4 deletions application/helpers/MY_html.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class html extends html_Core {
* @param string $input
* @return string
*/
public function clean($input)
public static function clean($input)
{
require_once APPPATH.'libraries/htmlpurifier/HTMLPurifier.auto.php';

Expand Down Expand Up @@ -51,7 +51,7 @@ public function clean($input)
* @param bool $encode Encode html entities?
* @return string
*/
public function strip_tags($input, $encode = TRUE)
public static function strip_tags($input, $encode = TRUE)
{
require_once APPPATH.'libraries/htmlpurifier/HTMLPurifier.auto.php';

Expand All @@ -74,7 +74,7 @@ public function strip_tags($input, $encode = TRUE)
*
* @return string
**/
public function allowed_html()
public static function allowed_html()
{
require_once APPPATH.'libraries/htmlpurifier/HTMLPurifier.auto.php';

Expand All @@ -98,7 +98,7 @@ public function allowed_html()
* @param bool $double_encode
* @return string
*/
public function escape($input, $double_encode = FALSE)
public static function escape($input, $double_encode = FALSE)
{
// Ensure we have valid correctly encoded string..
// http://stackoverflow.com/questions/1412239/why-call-mb-convert-encoding-to-sanitize-text
Expand Down