开发者

error in media wiki php code

开发者 https://www.devze.com 2022-12-14 03:11 出处:网络
$wgAuth = new HttpAuthPlugin();//After this line, control is not reachin the next line, not printin the next log.
$wgAuth = new HttpAuthPlugin();  //After this line, control is not reachin the next line, not printin the next log.

error_log("JITEN TEST :WGAUTH object created, Value of wgAuth is :" . $wgAuth . "\n", 3, $logfile);

$wgHooks['UserLoadFromSession'][] = array($wgAuth,'autoAuthenticate');
error_log("JITEN TEST :Value of wgAuth is :" . $wgAuth . "\n", 3, $logfile开发者_运维百科);

In the above case the code after $wgAuth = new HttpAuthPlugin(); is not getting executed.


According to the article on writing your own AuthPlugin, the class is called AuthPlugin not HttpAuthPlugin.

So it seems you should be using the code:

$wgAuth = new AuthPlugin();

Is this class coming from a third-party?

0

精彩评论

暂无评论...
验证码 换一张
取 消