I just tried to use the ini_set function, to change the value of a variable in php.ini for the execution of mediawiki.
MW ignored the new value however and kept using the one from php.ini. Is there something to know about using ini_set() in LocalSettings.php? Is its effect delayed but an amount of time? Does something triggers its effect at some point but not immediately?
Manu
On 31/07/07, Emanuele D'Arrigo manu3d@gmail.com wrote:
MW ignored the new value however and kept using the one from php.ini. Is there something to know about using ini_set() in LocalSettings.php? Is its effect delayed but an amount of time? Does something triggers its effect at some point but not immediately?
ini_set() isn't able to change all PHP.ini configuration settings, which makes some sense if one considers what would then be possible with a malicious script.
There's a list on http://uk2.php.net/manual/en/ini.php#ini.list - those marked with PHP_INI_ALL or PHP_INI_USER can be changed using this function.
Rob Church
On 7/31/07, Rob Church robchur@gmail.com wrote:
ini_set() isn't able to change all PHP.ini configuration settings, which makes some sense if one considers what would then be possible with a malicious script.
It does make perfect sense.
There's a list on http://uk2.php.net/manual/en/ini.php#ini.list -
those marked with PHP_INI_ALL or PHP_INI_USER can be changed using this function.
Exactly what I needed! Thank you!
Ciao!
Manu
When you link to an article that doesn't exist, the link appears in red. Is there a similar way to display whether a page anchor exists? For example, if you link to [[mypage#myanchor]], can it be colored differently if "myanchor" does not exist on page "mypage"?
DanB
Daniel Barrett wrote:
When you link to an article that doesn't exist, the link appears in red. Is there a similar way to display whether a page anchor exists? For example, if you link to [[mypage#myanchor]], can it be colored differently if "myanchor" does not exist on page "mypage"?
DanB
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
To the best of my knowledge, this would require an extension that sifts through the html output of the parser and makes the appropriate changes such as adding 'class="new"' to the relevant anchors.
The extension would need to hook-up to 'parser after tidy' (assuming one cares about parser caching).
jld.
On 8/1/07, Jean-Lou Dupont jeanlou.dupont@gmail.com wrote:
Daniel Barrett wrote:
When you link to an article that doesn't exist, the link appears in red. Is there a similar way to display whether a page anchor exists? For example, if you link to [[mypage#myanchor]], can it be colored differently if "myanchor" does not exist on page "mypage"?
DanB
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
To the best of my knowledge, this would require an extension that sifts through the html output of the parser and makes the appropriate changes such as adding 'class="new"' to the relevant anchors.
The extension would need to hook-up to 'parser after tidy' (assuming one cares about parser caching).
jld.
Ideally it would also able to register with Special:Wantedpages (or even a new special page specifically for broken anchors) for large-scale checking and fixing of broken anchors. Is there any extension that does something like this, or is it not possible?
mediawiki-l@lists.wikimedia.org