]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Check the site minifications etting for realtime plugin; debugging aid.
authorBrion Vibber <brion@pobox.com>
Mon, 14 Mar 2011 19:22:49 +0000 (12:22 -0700)
committerBrion Vibber <brion@pobox.com>
Mon, 14 Mar 2011 19:22:49 +0000 (12:22 -0700)
plugins/Realtime/RealtimePlugin.php

index 246b1f9735d9ef8596115c17cf95708404239649..f617c39060193c1b4cfac67afe6ec675cbcfb6aa 100644 (file)
@@ -323,7 +323,12 @@ class RealtimePlugin extends Plugin
 
     function _getScripts()
     {
-        return array(Plugin::staticPath('Realtime', 'realtimeupdate.min.js'));
+        if (common_config('site', 'minify')) {
+            $js = 'realtimeupdate.min.js';
+        } else {
+            $js = 'realtimeupdate.js';
+        }
+        return array(Plugin::staticPath('Realtime', $js));
     }
 
     /**