Index: trunk/phpwiki/fpw/wikiPage.php |
— | — | @@ -935,7 +935,7 @@ |
936 | 936 | |
937 | 937 | # This generates the QuickBar (also used by the list of special pages function) |
938 | 938 | function getQuickBar () { |
939 | | - global $wikiMainPage , $wikiRecentChanges , $wikiRecentChangesLink , $wikiUpload , $wikiPopularPages , $wikiLongPages; |
| 939 | + global $wikiMainPage , $wikiRecentChanges , $wikiRecentChangesLink , $wikiUpload , $wikiPopularPages , $wikiLongPages , $action ; |
940 | 940 | global $user , $oldID , $version , $wikiEditThisPage , $wikiDeleteThisPage , $wikiHistory , $wikiMyWatchlist , $wikiAskSQL ; |
941 | 941 | global $wikiStatistics , $wikiNewPages , $wikiOrphans , $wikiMostWanted , $wikiAllPages , $wikiRandomPage , $wikiStubs , $wikiListUsers ; |
942 | 942 | $editOldVersion = "" ; |
— | — | @@ -945,12 +945,18 @@ |
946 | 946 | $column .= "<br><a href=\"".wikiLink("special:$wikiRecentChangesLink")."\">$wikiRecentChanges</a>\n" ; |
947 | 947 | if ( $this->canEdit() ) $column .= "<br><a href=\"".wikiLink(urldecode($this->url)."$editOldVersion&action=edit")."\">$wikiEditThisPage</a>\n" ; |
948 | 948 | else if ( !$this->isSpecialPage ) $column .= "<br>Protected page\n" ; |
| 949 | + |
| 950 | + $temp = $this->isSpecialPage ; |
| 951 | + if ( $action == "" ) $this->isSpecialPage = false ; |
949 | 952 | if ( $this->canDelete() ) $column .= "<br><a href=\"".wikiLink("special:deletepage&target=".urldecode($this->url))."\">$wikiDeleteThisPage</a>\n" ; |
| 953 | + $this->isSpecialPage = $temp ; |
| 954 | + |
| 955 | + |
950 | 956 | if ( $this->canProtect() ) $column .= "<br><a href=\"".wikiLink("special:protectpage&target=".urldecode($this->url))."\">Protect this page</a>\n" ; |
951 | 957 | # To be implemented later |
952 | 958 | # if ( $this->canAdvance() ) $column .= "<br><a href=\"".wikiLink("special:Advance&topic=$this->safeTitle")."\">Advance</a>\n" ; |
953 | 959 | |
954 | | - if ( in_array ( "is_sysop" , $user->rights ) ) $column .= "<br><a href=\"".wikiLink(urldecode("special:AskSQL"))."\">$wikiAskSQL</a>\n" ; |
| 960 | + if ( in_array ( "is_sysop" , $user->rights ) ) $column .= "<br><a href=\"".wikiLink("special:AskSQL")."\">$wikiAskSQL</a>\n" ; |
955 | 961 | if ( !$this->isSpecialPage ) $column .= "<br><a href=\"".wikiLink(urldecode($this->url)."&action=history")."\">$wikiHistory</a>\n" ; |
956 | 962 | $column .= "<br><a href=\"".wikiLink("special:Upload")."\">$wikiUpload</a>\n" ; |
957 | 963 | $column .= "<hr>" ; |