Constructor cleanup. Props ocean90. fixes #16768

git-svn-id: https://develop.svn.wordpress.org/trunk@17771 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2011-04-29 20:05:12 +00:00
parent 54822700b8
commit 9730cb8d15
33 changed files with 54 additions and 122 deletions

View File

@@ -216,12 +216,12 @@ 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'] ) );
$this->app_base = site_url( $this->script_name . '/' );