Skip to content

Commit

Permalink
Fix: Make Htmlawed loading psr-4 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanJard committed Sep 18, 2020
1 parent 8ad5291 commit c1fc383
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Vendor/Htmlaw.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ class Htmlaw {
* @see http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/htmLawed_README.htm
*/
public static function filter($html, array $config = null, $spec = null) {
require_once __DIR__.'/htmLawed/htmLawed.php';

if ($config === null) {
$config = self::$defaultConfig;
}
Expand All @@ -81,7 +79,7 @@ public static function filter($html, array $config = null, $spec = null) {
$spec = static::$defaultSpec;
}

return htmLawed::hl($html, $config, $spec);
return \DataTables\Vendor\Htmlawed::hl($html, $config, $spec);
}


Expand Down
2 changes: 1 addition & 1 deletion Vendor/htmLawed/htmLawed.php → Vendor/Htmlawed.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace DataTables\Vendor;

class htmLawed{
class Htmlawed{
// begin class
public static function hl($t, $C=1, $S=array()){
$C = is_array($C) ? $C : array();
Expand Down

0 comments on commit c1fc383

Please sign in to comment.