Pages for Content
This commit is contained in:
parent
d4afe3b843
commit
e08d13a9af
|
@ -20,7 +20,6 @@
|
|||
// Main after POST
|
||||
// ============================================================================
|
||||
|
||||
if( $Login->logout())
|
||||
{
|
||||
if ($Login->logout()) {
|
||||
Redirect::home();
|
||||
}
|
||||
|
|
|
@ -32,13 +32,6 @@ class dbLanguage extends dbJSON
|
|||
unset($this->db['language-data']);
|
||||
}
|
||||
|
||||
/*
|
||||
public function exists($key)
|
||||
{
|
||||
return isset( $this->db[$key] );
|
||||
}
|
||||
*/
|
||||
|
||||
public function locale()
|
||||
{
|
||||
if (isset($this->data['locale'])) {
|
||||
|
@ -65,7 +58,7 @@ class dbLanguage extends dbJSON
|
|||
return $this->db[$key];
|
||||
}
|
||||
|
||||
return 'NO AVAILABLE: '.$string;
|
||||
file_put_contents(DEBUG_FILE, $key.PHP_EOL, FILE_APPEND);
|
||||
return $string;
|
||||
}
|
||||
|
||||
|
|
|
@ -66,6 +66,10 @@ class Filesystem {
|
|||
|
||||
public static function copyRecursive($source, $destination)
|
||||
{
|
||||
if (!self::directoryExists($source)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$destination = rtrim($destination, '/');
|
||||
|
||||
foreach($iterator = new RecursiveIteratorIterator(
|
||||
|
@ -82,6 +86,10 @@ class Filesystem {
|
|||
|
||||
public static function deleteRecursive($source)
|
||||
{
|
||||
if (!self::directoryExists($source)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach(new RecursiveIteratorIterator(
|
||||
new RecursiveDirectoryIterator($source, FilesystemIterator::SKIP_DOTS),
|
||||
RecursiveIteratorIterator::CHILD_FIRST) as $item) {
|
||||
|
|
|
@ -83,6 +83,11 @@ class User
|
|||
return $this->getField('facebook');
|
||||
}
|
||||
|
||||
public function codepen()
|
||||
{
|
||||
return $this->getField('codepen');
|
||||
}
|
||||
|
||||
public function googlePlus()
|
||||
{
|
||||
return $this->getField('googlePlus');
|
||||
|
|
|
@ -241,5 +241,7 @@
|
|||
"latest-content": "Latest content",
|
||||
"default-message": "Default message",
|
||||
"no-parent": "No parent",
|
||||
"have-you-seen-my-ball": "Have you seen my ball?"
|
||||
"have-you-seen-my-ball": "Have you seen my ball?",
|
||||
"pagebreak": "Page break",
|
||||
"this-plugin-may-not-be-supported-by-this-version-of-bludit": "This plugin may not be supported by this version of Bludit"
|
||||
}
|
Loading…
Reference in New Issue