Alisa Neeman @ on
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’);
}
1 Like 0 Dislike
John B Rosheck @ on
Yes it has. The new name of the class is Hubzero_Factory.
Reply Report abuse
Please login to answer the question.