aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-09-26 22:32:06 +0200
committerMario Vavti <mario@mariovavti.com>2018-09-26 22:32:06 +0200
commitbdf6289b323c26329087eb21911576239e0b6216 (patch)
tree99516001ee18fa00f546f1911e79fc7905185cd5
parente3c04b1fd0f441e0042e218f47696b1bfad26c73 (diff)
downloadvolse-hubzilla-bdf6289b323c26329087eb21911576239e0b6216.tar.gz
volse-hubzilla-bdf6289b323c26329087eb21911576239e0b6216.tar.bz2
volse-hubzilla-bdf6289b323c26329087eb21911576239e0b6216.zip
tokens: add css file and fix argc and argv values
-rw-r--r--Zotlabs/Module/Tokens.php6
-rw-r--r--view/css/mod_settings.css17
-rw-r--r--view/css/mod_tokens.css16
3 files changed, 19 insertions, 20 deletions
diff --git a/Zotlabs/Module/Tokens.php b/Zotlabs/Module/Tokens.php
index a791d3f63..ae03a499a 100644
--- a/Zotlabs/Module/Tokens.php
+++ b/Zotlabs/Module/Tokens.php
@@ -106,8 +106,8 @@ class Tokens extends Controller {
$atoken = null;
$atoken_xchan = '';
- if(argc() > 2) {
- $id = argv(2);
+ if(argc() > 1) {
+ $id = argv(1);
$atoken = q("select * from atoken where atoken_id = %d and atoken_uid = %d",
intval($id),
@@ -119,7 +119,7 @@ class Tokens extends Controller {
$atoken_xchan = substr($channel['channel_hash'],0,16) . '.' . $atoken['atoken_name'];
}
- if($atoken && argc() > 3 && argv(3) === 'drop') {
+ if($atoken && argc() > 2 && argv(2) === 'drop') {
atoken_delete($id);
$atoken = null;
$atoken_xchan = '';
diff --git a/view/css/mod_settings.css b/view/css/mod_settings.css
index 4236b3dff..d8786eed2 100644
--- a/view/css/mod_settings.css
+++ b/view/css/mod_settings.css
@@ -9,20 +9,3 @@
.channel-menu {
margin-top: 24px;
}
-
-.zat-example {
- color: red;
-}
-
-#atoken-index {
- width: 100%;
-}
-
-#atoken-index td:nth-child(1){
- padding: 7px 3px 7px 10px;
- white-space: nowrap;
-}
-
-.atoken-index-tool {
- padding: 7px 10px;
-}
diff --git a/view/css/mod_tokens.css b/view/css/mod_tokens.css
new file mode 100644
index 000000000..ac3bd90d7
--- /dev/null
+++ b/view/css/mod_tokens.css
@@ -0,0 +1,16 @@
+.zat-example {
+ color: red;
+}
+
+#atoken-index {
+ width: 100%;
+}
+
+#atoken-index td:nth-child(1){
+ padding: 7px 3px 7px 10px;
+ white-space: nowrap;
+}
+
+.atoken-index-tool {
+ padding: 7px 10px;
+}