Difference between revisions of "Talk:WikiDB/Files/WikiDB.php"

From TestWiki
Jump to: navigation, search
 
(Bug report moved to 'Bugs' page.)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
FYI: I currently get the following error whenever trying to access Special: or MediaWiki: pages:
+
== $wgArticle - non-object on special pages ==
  
'''Fatal error: Call to a member function on a non-object in /hsphere/local/home/dduran/innoviki.com/extensions/WikiDB.php on line 63'''
+
Moved to [[WikiDB/Bugs#$wgArticle - non-object on special pages]].
 
+
<pre>
+
59. function wfWikiDB_AddActionTabs(&$ContentActions) {
+
60. global $wgArticle, $action;
+
61. global $wgWikiDBNamespaces;
+
62.
+
63. $Title = $wgArticle->getTitle();
+
64. if ($Title->isTalkPage())
+
65. $Title = $Title->getSubjectPage();
+
</pre>
+
 
+
There's some discussion [http://mail.wikipedia.org/pipermail/mediawiki-l/2006-May/012154.html here] about the merits of $wgArticle vs. $wgTitle between MW1.5 and MW1.6. Not sure I understand but wanted to point it out.
+
 
+
I'm running: MW:1.6.5 PHP:4.3.11 (apache) MySQL:4.0.26-standard-log
+

Latest revision as of 21:31, 7 February 2022

$wgArticle - non-object on special pages[edit]

Moved to WikiDB/Bugs#$wgArticle - non-object on special pages.