add no_url_hashes plugin

This commit is contained in:
Andrew Dolgov 2013-12-05 23:42:20 +04:00
parent 429ff9afb0
commit 9864c1362a
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,4 @@
dojo.addOnLoad(function() {
hash_set = function() { };
hash_get = function() { };
});

View File

@ -0,0 +1,25 @@
<?php
class No_URL_Hashes extends Plugin {
private $host;
function about() {
return array(1.0,
"Disable URL hash usage (e.g. #f=10, etc)",
"fox");
}
function init($host) {
$this->host = $host;
}
function get_js() {
return file_get_contents(__DIR__ . "/init.js");
}
function api_version() {
return 2;
}
}
?>