title: Wrong path is used to load NextGen Gallery assets
body: <p>On my Wordpress website, when I go to the admin area and edit a page, all NextGen Gallery assets are loading from an incorrect path and hence 404ing. </p>
  
  <p>For example the following files: </p>
  
  <ul>
  <li><p><a href="http://example.comwp-content/plugins/nextgen-gallery-pro/modules/autoupdate_admin/static/jquery-ui/jquery-ui-1.9.1.custom.css?ver=1.9.1" rel="nofollow">http://example.comwp-content/plugins/nextgen-gallery-pro/modules/autoupdate_admin/static/jquery-ui/jquery-ui-1.9.1.custom.css?ver=1.9.1</a></p></li>
  <li><p><a href="http://example.comwp-content/plugins/nextgen-gallery-pro/modules/autoupdate_admin/static/admin.css?ver=4.0.1" rel="nofollow">http://example.comwp-content/plugins/nextgen-gallery-pro/modules/autoupdate_admin/static/admin.css?ver=4.0.1</a> </p></li>
  <li><p><a href="http://example.comwp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ajax/static/ajax.js?ver=4.0.1" rel="nofollow">http://example.comwp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ajax/static/ajax.js?ver=4.0.1</a></p></li>
  </ul>
  
  <p>Notice how it says <strong><code>example.comwp-content</code></strong> where it should be <strong><code>example.com/wp-content</code></strong></p>
  
  <p>example.com is just a dummy name that I replaced with my real domain name. </p>
  
  <p>What I've done so far with no success: </p>
  
  <ul>
  <li>Deactivated other plugins</li>
  <li>Turned error reporting on</li>
  </ul>
  
  <p>These are the values from my wp-config.php file:</p>
  
  <ul>
  <li><code>define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']);</code></li>
  <li><code>define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']);</code></li>
  <li><code>define('WP_CONTENT_URL', '/wp-content');</code></li>
  <li><code>define('DOMAIN_CURRENT_SITE', $_SERVER['HTTP_HOST']);</code></li>
  </ul>
  
  <p>More Details:</p>
  
  <ul>
  <li>Wordpress Version 4.0.1 </li>
  <li>NextGen Gallery version: 2.0.66.33  </li>
  <li>NextGen Gallery Pro version: 2.1.4 </li>
  </ul>