diff --git a/.gitignore b/.gitignore index 11229a42f5..d36e8034ca 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ /audio/ /js/config.js /index.php +/index.html .DS_Store diff --git a/githooks/update-version-query-strings-dynamic b/githooks/update-version-query-strings-dynamic new file mode 100644 index 0000000000..6671d7bdf5 --- /dev/null +++ b/githooks/update-version-query-strings-dynamic @@ -0,0 +1,31 @@ +#!/usr/bin/env php +', + getNewsId(), + str_replace('', + ''.renderNews().'', + preg_replace_callback('/(src|href)="\/(.*?)\?[a-z0-9]*?"/', + 'replaceMatch', + file_get_contents('index.template.php')))) + ); +