Skip to content

Commit

Permalink
Update simple_html_dom.php
Browse files Browse the repository at this point in the history
Check if MAX_FILE_SIZE is already defined
  • Loading branch information
mryanb committed Apr 9, 2016
1 parent d95e6bb commit 4457414
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Src/Sunra/PhpSimple/simplehtmldom_1_5/simple_html_dom.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@
define('DEFAULT_TARGET_CHARSET', 'UTF-8');
define('DEFAULT_BR_TEXT', "\r\n");
define('DEFAULT_SPAN_TEXT', " ");
define('MAX_FILE_SIZE', 600000);
if (!defined('MAX_FILE_SIZE'))
{
define('MAX_FILE_SIZE', 600000);
}
// helper functions
// -----------------------------------------------------------------------------
// get html dom from file
Expand Down

0 comments on commit 4457414

Please sign in to comment.