patching SpecialAllpages.php no longer necessary

This commit is contained in:
Sven 2008-01-07 17:14:42 +00:00
parent 278e7fcb64
commit fe258d8670
1 changed files with 0 additions and 27 deletions

View File

@ -71,33 +71,6 @@ Index: includes/Title.php
$url = false;
</pre>
Der Patch sorgt dafür, daß Special:Allpages nicht auf die index.php submitted.
<pre>
Index: includes/SpecialAllpages.php
===================================================================
--- includes/SpecialAllpages.php (revision 18464)
+++ includes/SpecialAllpages.php (working copy)
@@ -50,7 +50,6 @@
* @param string $from Article name we are starting listing at.
*/
function namespaceForm ( $namespace = NS_MAIN, $from = '' ) {
- global $wgScript;
$t = SpecialPage::getTitleFor( $this->name );
$namespaceselect = HTMLnamespaceselector($namespace, null);
@@ -59,8 +58,7 @@
. htmlspecialchars ( $from ) . '"/>';
$submitbutton = '<input type="submit" value="' . wfMsgHtml( 'allpagessubmit' ) . '" />';
+ $out = "<div class='namespaceoptions'><form method='get' action='".$t->getLocalUrl()."'>";
- $out = "<div class='namespaceoptions'><form method='get' action='{$wgScript}'>";
- $out .= '<input type="hidden" name="title" value="'.$t->getPrefixedText().'" />';
$out .= "
<table id='nsselect' class='allpages'>
<tr>
</pre>
==Erstellen einer Kopie von index.php für den internen Bereich==
In dieser Kopie fügt man lediglich ein require für die LocalSettings des internen Bereichs hinzu
<pre>