User Details
User Details
- User Since
- Apr 30 2025, 4:33 PM (10 w, 5 d)
May 14 2025
May 14 2025
OAuth needs to be brought up to snuff before this can be done.
May 14 2025, 2:58 PM · Restricted Project
jazz added a parent task for T23: Fix an error regarding GlobalSettings: T45: Connect Phorge to SkyWiki through OAuth.
jazz added a subtask for T45: Connect Phorge to SkyWiki through OAuth: T23: Fix an error regarding GlobalSettings.
May 14 2025, 2:57 PM · Restricted Project
May 14 2025, 2:56 PM · Restricted Project
I believe SkyWiki's GlobalSettings.php is not publicly available, but I'm assuming it's similar to Miraheze's GlobalSettings, where this appears to be the problematic code (lines 18–23):
$wgHooks['BeforePageDisplay'][] = static function ( &$out, &$skin ) { if ( $out->getTitle()->isSpecialPage() ) { $out->setRobotPolicy( 'noindex,nofollow' ); } return true; };
If so, is there any good reason not to replace the hook with $wgNamespaceRobotPolicies, a built-in MediaWiki configuration variable?
$wgNamespaceRobotPolicies[NS_SPECIAL] = 'noindex,nofollow';
Seems like that would accomplish the same purpose.
May 12 2025
May 12 2025