*** brilliant_gallery.module    Thu Aug 21 22:00:12 2008
--- brilliant_gallery.module.org        Thu Aug 21 21:59:36 2008
***************
*** 380,391 ****
                           # Get this module's path:
                             $modulepath = url(drupal_get_path('module', 'brilliant_gallery'), $options = array(NULL, NULL, TRUE));
                             #echo '<p>'.$absolpath . ' ... ' . $result;
-                            # Non-clean URLs need removing ?q=
-                              $modulepath = str_replace( "?q=", "",  $modulepath );
                             # url() ads i18n codes to the URL ... we need to remove them here...
                               if ( $langcode <> '' ) {
                                    $modulepath = str_replace( '/' . $langcode . '/', '/', $modulepath );
                                  }
                           if ( $smallenough === true ) {
                                $result .= '<a href="' . $fullimgpath . '"';
                              } else {
--- 380,391 ----
                           # Get this module's path:
                             $modulepath = url(drupal_get_path('module', 'brilliant_gallery'), $options = array(NULL, NULL, TRUE));
                             #echo '<p>'.$absolpath . ' ... ' . $result;
                             # url() ads i18n codes to the URL ... we need to remove them here...
                               if ( $langcode <> '' ) {
                                    $modulepath = str_replace( '/' . $langcode . '/', '/', $modulepath );
                                  }
+                            # Non-clean URLs need removing ?q=
+                              $modulepath = str_replace( "?q=", "",  $modulepath );
                           if ( $smallenough === true ) {
                                $result .= '<a href="' . $fullimgpath . '"';
                              } else {
