r64522 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64521‎ | r64522 | r64523 >
Date:17:32, 2 April 2010
Author:ialex
Status:ok (Comments)
Tags:
Comment:
Fix notice: Use of undefined constant __FUNC__ - assumed '__FUNC__' in /Library/WebServer/Documents/phase3/includes/Article.php on line 1039
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -1022,7 +1022,7 @@
10231023 * array
10241024 */
10251025 public function getRobotPolicyForView() {
1026 - wfDeprecated( __FUNC__ );
 1026+ wfDeprecated( __FUNCTION__ );
10271027 $policy = $this->getRobotPolicy( 'view' );
10281028 return $policy['index'] . ',' . $policy['follow'];
10291029 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r64526Per Nikerabbit, follow-up to r64522: use __METHOD__ialex19:51, 2 April 2010

Comments

#Comment by Nikerabbit (talk | contribs)   19:46, 2 April 2010

Why not __METHOD__ anyway?

#Comment by IAlex (talk | contribs)   19:51, 2 April 2010

Done in r64526.

Status & tagging log