slugify console.php prompt name
since PHP thought it was fun to crash on Quitter España and I couldn't be bothered messing with readline
This commit is contained in:
parent
3294d704a4
commit
b4b8cb57b3
|
@ -880,6 +880,11 @@ class Profile extends Managed_DataObject
|
||||||
$inst->delete();
|
$inst->delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$localuser = User::getKV('id', $this->id);
|
||||||
|
if ($localuser instanceof User) {
|
||||||
|
$localuser->delete();
|
||||||
|
}
|
||||||
|
|
||||||
return parent::delete($useWhere);
|
return parent::delete($useWhere);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@ function readline_emulation($prompt)
|
||||||
|
|
||||||
function console_help()
|
function console_help()
|
||||||
{
|
{
|
||||||
print "Welcome to StatusNet's interactive PHP console!\n";
|
print "Welcome to GNU social's interactive PHP console!\n";
|
||||||
print "Type some PHP code and it'll execute...\n";
|
print "Type some PHP code and it'll execute...\n";
|
||||||
print "\n";
|
print "\n";
|
||||||
print "Hint: return a value of any type to output it via var_export():\n";
|
print "Hint: return a value of any type to output it via var_export():\n";
|
||||||
|
@ -128,8 +128,8 @@ function console_help()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CONSOLE_INTERACTIVE) {
|
if (CONSOLE_INTERACTIVE) {
|
||||||
print "StatusNet interactive PHP console... type ctrl+D or enter 'exit' to exit.\n";
|
print "GNU social interactive PHP console... type ctrl+D or enter 'exit' to exit.\n";
|
||||||
$prompt = common_config('site', 'name') . '> ';
|
$prompt = common_slugify(common_config('site', 'name')) . '> ';
|
||||||
} else {
|
} else {
|
||||||
$prompt = '';
|
$prompt = '';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue