Increase timeout for cases when caches have been just purged. 15 sec not enough in this scenario and static page generation fails.
Cook file url properly when Moodle is installed in a sub folder. Some files were trying to reach via url like http://localhost/subdir/subdir/theme/styles.php. Short url has already had subdir and then we concatenate it with $CFG->wwwroot that has subdir as well.
Tweak regexp and exclude non-url entries. Entries like url("data:image/svg+xml,%3csvg xmlns=\:
Update file hashes in unit tests.
Move regexp to a separate method.
Introduce unit tests for get_urls_from_stylesheet() method.
This PR fixes issue #179
http://localhost/subdir/subdir/theme/styles.php
. Short url has already had subdir and then we concatenate it with$CFG->wwwroot
that has subdir as well.url("data:image/svg+xml,%3csvg xmlns=\
: