Commit 1015df08 authored by hass's avatar hass
Browse files

Made hook_disable more E_ALL save.

parent 07a2e74c
...@@ -39,9 +39,12 @@ function googleanalytics_uninstall() { ...@@ -39,9 +39,12 @@ function googleanalytics_uninstall() {
* Remove cache directory if module is disabled (or uninstalled). * Remove cache directory if module is disabled (or uninstalled).
*/ */
function googleanalytics_disable() { function googleanalytics_disable() {
file_delete(file_directory_path() .'/googleanalytics/urchin.js'); $path = file_directory_path() .'/googleanalytics';
file_delete(file_directory_path() .'/googleanalytics/ga.js'); if (file_exists($path)) {
rmdir(file_directory_path() .'/googleanalytics'); file_delete($path .'/urchin.js');
file_delete($path .'/ga.js');
rmdir($path);
}
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment