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() {
* Remove cache directory if module is disabled (or uninstalled).
*/
function googleanalytics_disable() {
file_delete(file_directory_path() .'/googleanalytics/urchin.js');
file_delete(file_directory_path() .'/googleanalytics/ga.js');
rmdir(file_directory_path() .'/googleanalytics');
$path = file_directory_path() .'/googleanalytics';
if (file_exists($path)) {
file_delete($path .'/urchin.js');
file_delete($path .'/ga.js');
rmdir($path);
}
}
......
Markdown is supported
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