forked from wallabag/wallabag
a lot of enhancements related to tags: tags list is now sorted, shows number of articles, autocomplete added according to #477, #542
This commit is contained in:
10
inc/poche/Tools.class.php
Normal file → Executable file
10
inc/poche/Tools.class.php
Normal file → Executable file
@ -311,4 +311,14 @@ class Tools
|
||||
|
||||
return json_decode($json, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether we handle an AJAX (XMLHttpRequest) request.
|
||||
* @return boolean whether we handle an AJAX (XMLHttpRequest) request.
|
||||
*/
|
||||
public static function isAjaxRequest()
|
||||
{
|
||||
return isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH']==='XMLHttpRequest';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user