소스 검색

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

Frederic G. MARAND 12 년 전
부모
커밋
766b47b2eb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      memcache_ui.php

+ 1 - 1
memcache_ui.php

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