revert last edit because mediawiki fucked it up

This commit is contained in:
Sven 2007-01-05 17:36:30 +00:00
parent 9e3ce21623
commit 701155ce24
1 changed files with 23 additions and 3 deletions

View File

@ -74,9 +74,29 @@ Index: includes/Title.php
Der Patch sorgt dafür, daß Special:Allpages nicht auf die index.php submitted.
<pre>
Index: includes/SpecialAllpages.php
==Interwiki-Link==
Damit die Links auf Seiten im internen Bereich nicht alle rot sind, sollte man einen Interwiki-Link für den internen Bereich anlegen:
INSERT INTO interwiki(iw_prefix,iw_url,iw_local,iw_trans) VALUES ('intern', 'https://wiki.c3d2.de/Intern:$1', 0, 0);
===================================================================
--- 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