Questions and Answers

0 Like 0 Dislike

Alisa Neeman

Has XFactory moved?

Is HUBzero’s XFactory no longer a global variable? I was using it for a page redirection in my joomla component, but now i get the error message Fatal Error: Class ‘XFactory’ not found in /path/to/my/component/mycomponent.php

The original code: // ensure secure connection

$xhub = &XFactory::getHub();

if ( !isset( $_SERVER‘HTTPS’ ) || $_SERVER‘HTTPS’ == ‘off’ ) { $xhub->redirect( ‘https://’ . $_SERVER‘HTTP_HOST’ . $_SERVER‘REQUEST_URI’ ); die(‘Insecure connection, redirection failed’);

}

Report abuse

Chosen Answer

  1. 0 Dislike

    John B Rosheck

    Yes it has. The new name of the class is Hubzero_Factory.

    Reply Report abuse

    Please login to answer the question.

0 Responses

No other responses made.

  • Copyright © 2022 Hubzero
  • Powered by Hubzero®