On Tue, Jan 13, 2015, at 05:04 PM, Daniel Friesen wrote:
Someone messed with the way Vector is loaded, which is now like this:
// Register skin SkinFactory::getDefaultInstance()->register( 'vector', 'Vector', function(){ $config = ConfigFactory::getDefaultInstance()->makeConfig( 'vector' ); return new SkinVector( $config ); } );
// Register config $GLOBALS['wgConfigRegistry']['vector'] = 'GlobalVarConfig::newInstance';
You'll need to adapt is for your skin since SkinVector expects one of these config objects.
Thanks Daniel,
If I remove the "require_once( dirname( __FILE__ ).." line from ZedDocs.skin.php I get the error :
"PHP Catchable fatal error: Argument 1 passed to SkinVector::__construct() must implement interface Config, string given ..."
which is why/where I need to fix-up my skin I assume.
Unfortunately, I have no idea how to do this at the moment, so hope it is not hard. Given my skin is very basic and small (most of the ZedDocs.skin.php file seems to be "template" stuff?), is it straightforward?
Cheers,