aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/Tools.class.php
diff options
context:
space:
mode:
authorMaryana Rozhankivska <mariroz@mr.lviv.ua>2014-03-10 16:28:47 +0200
committerMaryana Rozhankivska <mariroz@mr.lviv.ua>2014-03-10 16:28:47 +0200
commitfb26cc9375ce9ef8df748eb473eb6e58884421c6 (patch)
tree3b1ac9bf4b1eb95c4ca91c02b447350516b8ad84 /inc/poche/Tools.class.php
parent17b2afefad1947042cc9fbbb841c3a023d00d96d (diff)
downloadwallabag-fb26cc9375ce9ef8df748eb473eb6e58884421c6.tar.gz
wallabag-fb26cc9375ce9ef8df748eb473eb6e58884421c6.tar.zst
wallabag-fb26cc9375ce9ef8df748eb473eb6e58884421c6.zip
a lot of enhancements related to tags: tags list is now sorted, shows number of articles, autocomplete added according to #477, #542
Diffstat (limited to 'inc/poche/Tools.class.php')
-rwxr-xr-x[-rw-r--r--]inc/poche/Tools.class.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php
index eeb101b4..ad451fc6 100644..100755
--- a/inc/poche/Tools.class.php
+++ b/inc/poche/Tools.class.php
@@ -311,4 +311,14 @@ class Tools
311 311
312 return json_decode($json, true); 312 return json_decode($json, true);
313 } 313 }
314
315 /**
316 * Returns whether we handle an AJAX (XMLHttpRequest) request.
317 * @return boolean whether we handle an AJAX (XMLHttpRequest) request.
318 */
319 public static function isAjaxRequest()
320 {
321 return isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH']==='XMLHttpRequest';
322 }
323
314} 324}