X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/022dfbbbe3215917d84708eb09acca93b21ae9e0..7688c6ba71852cd89123b62b2d57683535e4702a:/wp-content/plugins/hello.php diff --git a/wp-content/plugins/hello.php b/wp-content/plugins/hello.php index e03dbcc3..14374585 100644 --- a/wp-content/plugins/hello.php +++ b/wp-content/plugins/hello.php @@ -6,7 +6,7 @@ Description: This is not just a plugin, it symbolizes the hope and enthusiasm of Author: Matt Mullenweg Version: 1.5 Author URI: http://photomatt.net/ -*/ +*/ // These are the lyrics to Hello Dolly $lyrics = "Hello, Dolly @@ -41,7 +41,7 @@ Dolly'll never go away again"; // Here we split it into lines $lyrics = explode("\n", $lyrics); // And then randomly choose a line -$chosen = wptexturize( $lyrics[ mt_rand(0, count($lyrics) ) ] ); +$chosen = wptexturize( $lyrics[ mt_rand(0, count($lyrics) - 1) ] ); // This just echoes the chosen line, we'll position it later function hello_dolly() {