Skip to content
Snippets Groups Projects
Commit c0bbc6ce authored by nprasath002's avatar nprasath002
Browse files

using call_user_func

git-svn-id: http://plugins.svn.wordpress.org/push-syndication/trunk@577166 b8457f37-d9ea-0310-8a92-e5e31aec5664
parent e2e27b0a
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ class wp_client_factory {
public static function display_client_settings( $site, $class ) {
if( class_exists($class) ) {
return $class::display_settings( $site );
return call_user_func( array( $class, 'display_settings' ), $site );
}
throw new Exception('transport class not found');
......@@ -31,7 +31,7 @@ class wp_client_factory {
$class = $_POST['transport_type'] . '_client';
if( class_exists($class) ) {
return $class::save_settings( $site_ID );
return call_user_func( array( $class, 'save_settings' ), $site_ID );
}
throw new Exception('transport class not found');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment