diff --git a/simple_background.module b/simple_background.module
index 360d5e0..c5e22e5 100644
--- a/simple_background.module
+++ b/simple_background.module
@@ -207,7 +207,7 @@ function simple_background_preprocess_html(&$vars) {
   $settings = unserialize(variable_get('simple_background'));
 
   // No dice on admin pages if setting.
-  if (!$settings['admin'] && arg(0) == 'admin') {
+  if (!$settings['admin'] && path_is_admin(current_path())) {
     return;
   }
   // Get file id.
