aboutsummaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-01-06 22:46:40 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-01-06 22:46:40 +0100
commit9671ace32e57ce6b176a50dc346baf3b3b7eb14e (patch)
treebf3b4afd8de851d108909fc5a9ad198c13d93c8a /core/js
parent9cd7bb2c8d7b7207a3c67e09158641b0c33e631d (diff)
parent08d7b8ce309baebfc243727c215b63e732bf874e (diff)
downloadnextcloud-server-9671ace32e57ce6b176a50dc346baf3b3b7eb14e.tar.gz
nextcloud-server-9671ace32e57ce6b176a50dc346baf3b3b7eb14e.zip
Merge branch 'master' into fix_minor_files_annoyances
Conflicts: apps/files/js/files.js
Diffstat (limited to 'core/js')
-rw-r--r--core/js/js.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 5a24ba19c0c..9f3e8f92100 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -3,14 +3,15 @@
* Add
* define('DEBUG', true);
* To the end of config/config.php to enable debug mode.
+ * The undefined checks fix the broken ie8 console
*/
-if (oc_debug !== true) {
+if (oc_debug !== true || typeof console === "undefined" || typeof console.log === "undefined") {
if (!window.console) {
window.console = {};
}
var methods = ['log', 'debug', 'warn', 'info', 'error', 'assert'];
for (var i = 0; i < methods.length; i++) {
- console[methods[i]] = function () { };
+ console[methods[i]] = function () { };
}
}
@@ -20,7 +21,6 @@ if (oc_debug !== true) {
* @param text the string to translate
* @return string
*/
-
function t(app,text, vars){
if( !( t.cache[app] )){
$.ajax(OC.filePath('core','ajax','translations.php'),{