Wordpress 3.3.1-scripts
[autoinstalls/wordpress.git] / wp-app.php
index ec35b4120c2de2ba2964f5ed6e4f576713ea68aa..323f832a8ba1d48e00f83f606cdc126d99abc56e 100644 (file)
@@ -223,7 +223,8 @@ class AtomServer {
         */
        function __construct() {
 
-               $this->script_name = array_pop( explode( '/', $_SERVER['SCRIPT_NAME'] ) );
+               $var_by_ref = explode( '/', $_SERVER['SCRIPT_NAME'] );
+               $this->script_name = array_pop( $var_by_ref );
                $this->app_base = site_url( $this->script_name . '/' );
 
                $this->selectors = array(