r111794 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111793‎ | r111794 | r111795 >
Date:21:31, 17 February 2012
Author:kaldari
Status:ok
Tags:
Comment:
partial revert of r111787 - installation instructions should still refer to the extensions directory. Changing MEDIAWIKI undefined error to refer to the INSTALL instructions.
Modified paths:
  • /trunk/extensions/examples/HelloWorld/HelloWorld.php (modified) (history)
  • /trunk/extensions/examples/HelloWorld/INSTALL (modified) (history)

Diff [purge]

Index: trunk/extensions/examples/HelloWorld/HelloWorld.php
@@ -24,11 +24,11 @@
2525 * @author Ryan Kaldari
2626 */
2727
28 -// Tell the user how to install the extension if they try to access the page directly.
 28+// Alert the user that this is not a valid entry point to MediaWiki if they try to access the file directly.
2929 if ( !defined( 'MEDIAWIKI' ) ) {
3030 echo <<<EOT
31 -To install this extension, put the following line in LocalSettings.php:
32 -require_once( "\$IP/extensions/examples/HelloWorld/HelloWorld.php" );\n
 31+This extension can only be run from within MediaWiki. To install this extension,
 32+follow the directions in the INSTALL file.\n
3333 EOT;
3434 exit( 1 );
3535 }
Index: trunk/extensions/examples/HelloWorld/INSTALL
@@ -3,7 +3,7 @@
44 * Download the latest available version and extract it to your wiki extension directory.
55 * Add the following line to LocalSettings.php:
66
7 - require_once( "$IP/extensions/examples/HelloWorld/HelloWorld.php" );
 7+ require_once( "$IP/extensions/HelloWorld/HelloWorld.php" );
88
99 * Check out the Special:HelloWorld page to verify the installation.
1010

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r111787follow-up to r111786, updating paths for new directory locationkaldari21:16, 17 February 2012

Status & tagging log