=== modified file 'includes/common.inc'
--- includes/common.inc	2009-04-24 08:15:50 +0000
+++ includes/common.inc	2009-04-26 03:18:27 +0000
@@ -2283,7 +2283,7 @@ function drupal_load_stylesheet($file, $
  * @return
  *   Contents of the stylesheet including the imported stylesheets.
  */
-function drupal_load_stylesheet_content($contents, $optimize = FALSE) {  
+function drupal_load_stylesheet_content($contents, $optimize = FALSE) {
   // Replaces @import commands with the actual stylesheet content.
   // This happens recursively but omits external files.
   $contents = preg_replace_callback('/@import\s*(?:url\()?[\'"]?(?![a-z]+:)([^\'"\()]+)[\'"]?\)?;/', '_drupal_load_stylesheet', $contents);

=== modified file 'includes/path.inc'
--- includes/path.inc	2009-04-03 17:41:32 +0000
+++ includes/path.inc	2009-04-26 03:24:17 +0000
@@ -262,3 +262,29 @@ function drupal_match_path($path, $patte
   }
   return (bool)preg_match($regexps[$patterns], $path);
 }
+
+/**
+ * Returns the current URL path of the page being viewed.
+ * Example #1: For a user viewing http://example.com/node/306 this function
+ * would return "node/306".
+ *
+ * Example #2: When viewing http://example.com/drupalfolder/node/306 this
+ * function would still return "node/306" and base_path() would return
+ * "/drupalfolder/".
+ *
+ * Example #3: if "http://example.com/path/alias" is a path alias for
+ * "http://example.com/node/306" then on viewing
+ * "http://example.com/path/alias", this function would still return
+ * ""node/306".
+ *
+ * Note that in hook_boot this function is not available and you should use
+ * $_GET['q'] instead but be careful as for Example #3 it will contain
+ * "path/alias". Calling drupal_bootstrap(DRUPAL_BOOTSTRAP_PATH) makes this
+ * "function available with a return value of "node/306".
+ *
+ * @return
+ *   The current Drupal path.
+ */
+function current_path() {
+  return $_GET['q'];
+}

