[minor] AboutEnano can detect Mac OS X now
authorDan
Sat, 08 Nov 2008 22:33:51 -0500
changeset 722 4ea698929756
parent 721 bfde4d7402b1
child 723 78d391d37700
[minor] AboutEnano can detect Mac OS X now
plugins/SpecialPageFuncs.php
--- a/plugins/SpecialPageFuncs.php	Sat Nov 08 22:33:26 2008 -0500
+++ b/plugins/SpecialPageFuncs.php	Sat Nov 08 22:33:51 2008 -0500
@@ -582,8 +582,10 @@
     $platform = 'Windows NT';
   else if(file_exists('C:\Windows\system\krnl386.exe'))
     $platform = 'Windows 9x/DOS';
+  else if(file_exists('/System/Library/CoreServices/SystemVersion.plist'))
+    $platform = 'Mac OS X';
   else if(file_exists('/bin/bash'))
-    $platform = 'Other GNU/Mac OS X';
+    $platform = 'Other GNU';
   else if(is_dir('/bin'))
     $platform = 'Other POSIX';
   $template->header();