From: Brion Vibber Date: Mon, 14 Mar 2011 19:22:49 +0000 (-0700) Subject: Check the site minifications etting for realtime plugin; debugging aid. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ed2d224df5e52b2fe5ef5f076d147791e48c4dcf;p=quix0rs-gnu-social.git Check the site minifications etting for realtime plugin; debugging aid. --- diff --git a/plugins/Realtime/RealtimePlugin.php b/plugins/Realtime/RealtimePlugin.php index 246b1f9735..f617c39060 100644 --- a/plugins/Realtime/RealtimePlugin.php +++ b/plugins/Realtime/RealtimePlugin.php @@ -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)); } /**