forked from GNUsocial/gnu-social
showcache.php column flag was conflicting with default flag
This commit is contained in:
parent
644a916383
commit
aee73d87ee
@ -20,14 +20,14 @@
|
|||||||
|
|
||||||
define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
|
define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
|
||||||
|
|
||||||
$shortoptions = "t:c:v:k:";
|
$shortoptions = "t:l:v:k:";
|
||||||
|
|
||||||
$helptext = <<<ENDOFHELP
|
$helptext = <<<ENDOFHELP
|
||||||
USAGE: showcache.php <args>
|
USAGE: showcache.php <args>
|
||||||
shows the cached object based on the args
|
shows the cached object based on the args
|
||||||
|
|
||||||
-t table Table to look up
|
-t table Table to look up
|
||||||
-c column Column to look up, default "id"
|
-l column Column to look up, default "id"
|
||||||
-v value Value to look up
|
-v value Value to look up
|
||||||
-k key Key to look up; other args are ignored
|
-k key Key to look up; other args are ignored
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ if (!empty($karg)) {
|
|||||||
if (empty($table)) {
|
if (empty($table)) {
|
||||||
die("No table or key specified\n");
|
die("No table or key specified\n");
|
||||||
}
|
}
|
||||||
$column = get_option_value('c');
|
$column = get_option_value('l');
|
||||||
if (empty($column)) {
|
if (empty($column)) {
|
||||||
$column = 'id';
|
$column = 'id';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user