Explorar el Código

tidy is a global class, so needs a global namespace specification.

Frederic G. MARAND hace 12 años
padre
commit
766b47b2eb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      memcache_ui.php

+ 1 - 1
memcache_ui.php

@@ -15,7 +15,7 @@ namespace Memcache_UI {
         'sort-attributes' => 'alpha',
         'wrap'            => 200,
     );
-    $tidy = new tidy();
+    $tidy = new \tidy();
     $tidy->parseString($html, $config, 'utf8');
     $tidy->cleanRepair();
     $html = (string) $tidy;