TGL_Instagram icon indicating copy to clipboard operation
TGL_Instagram copied to clipboard

Multi Site Manager conflicts

Open AbeCole opened this issue 11 years ago • 0 comments

There is a small problem with the redirect_uri generated by the addon, as it doesn't contain any site_id variable (which is usually in the $_GET variables as S=0, where 0 is site_id). I'm not at work at the moment so can't make a fork and push the changes.

The neccesary fix is to modify mcp.tgl_instagram.php on line 47.

'redirect_uri' => urlencode($this->EE->config->item('cp_url').'?D=cp&C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module=tgl_instagram'.AMP.'callback=true')

Change to:

'redirect_uri' => urlencode($this->EE->config->item('cp_url').'?S='.$this->EE->config->item('site_id').AMP.'D=cp&C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module=tgl_instagram'.AMP.'callback=true')

AbeCole avatar Sep 03 '13 13:09 AbeCole