X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/e9d988989fe37ab8c5f903e47fbe36e6e00dc51f..bf5c68485ef07868ad0a91168ecd0092af7661ae:/wp-app.php diff --git a/wp-app.php b/wp-app.php index c836e2f7..323f832a 100644 --- a/wp-app.php +++ b/wp-app.php @@ -216,14 +216,15 @@ class AtomServer { var $do_output = true; /** - * PHP4 constructor - Sets up object properties. + * Constructor - Sets up object properties. * * @since 2.2.0 * @return AtomServer */ - function AtomServer() { + function __construct() { - $this->script_name = array_pop( $var_by_ref = 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(