aboutsummaryrefslogtreecommitdiff
path: root/views/default/ajax/loader.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/ajax/loader.php')
-rw-r--r--views/default/ajax/loader.php39
1 files changed, 17 insertions, 22 deletions
diff --git a/views/default/ajax/loader.php b/views/default/ajax/loader.php
index 430170aab..7942ba470 100644
--- a/views/default/ajax/loader.php
+++ b/views/default/ajax/loader.php
@@ -1,29 +1,24 @@
<?php
+/**
+ * Elgg AJAX loader
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */
- /**
- * Elgg AJAX loader
- *
- * @package Elgg
- * @subpackage Core
+$loader = <<< END
- * @author Curverider Ltd
+<div align="center" class="ajax_loader"></div>
- * @link http://elgg.org/
- */
-
- $loader = <<< END
-
- <div align="center" class="ajax_loader"></div>
-
END;
- $loader = str_replace("\n","",$loader);
- $loader = str_replace("\r","",$loader);
+$loader = str_replace("\n","",$loader);
+$loader = str_replace("\r","",$loader);
+
+if (isset($vars['slashes']) && $vars['slashes'] == true) {
+ $loader = addslashes($loader);
+}
- if (isset($vars['slashes']) && $vars['slashes'] == true) {
- $loader = addslashes($loader);
- }
-
- echo $loader;
-
-?> \ No newline at end of file
+echo $loader; \ No newline at end of file