https://bugzilla.wikimedia.org/show_bug.cgi?id=16979


Ameliorate <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #5674 is|0                           |1
           obsolete|                            |




--- Comment #5 from Ameliorate <[email protected]>  2009-01-14 01:21:18 
UTC ---
Created an attachment (id=5675)
 --> (https://bugzilla.wikimedia.org/attachment.cgi?id=5675)
Factoring in ArticleRobotPolicies

I could kill two birds with one stone here.

It should now work like this;

1) Check if the page has a policy defined in $wgArticleRobotPolicies - if it
does not code will be executed so the page will not be added to the category
and the new Index/Noindex policy will not be set.

2) If not then check $wgExemptFromUserRobotsControl - if the namespace has a
local policy then the policy will not be set.

3) If not, check if NOINDEX/INDEX tags are in use

4) If so then add it to the appropriate category and set the policy.

This is the first time I've really played around with MediaWiki's code so I
don't know if it will work as intended but this should also solve the problem
of NOINDEX/INDEX overriding a policy set in $wgArticleRobotPolicies.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to