mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-07 05:37:03 +02:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -30,7 +30,7 @@ Fast and small content management system written in PHP!
|
|||||||
|
|
||||||
|
|
||||||
## Links
|
## Links
|
||||||
- [Site](http://punbb.informer.com/wiki/)
|
- [Site](http://monstra.org)
|
||||||
- [Forum](http://forum.monstra.org)
|
- [Forum](http://forum.monstra.org)
|
||||||
- [Documentation](http://monstra.org/documentation)
|
- [Documentation](http://monstra.org/documentation)
|
||||||
- [Github Repository](https://github.com/Awilum/monstra-cms)
|
- [Github Repository](https://github.com/Awilum/monstra-cms)
|
||||||
|
@@ -180,7 +180,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $prefix . call_user_func(Shortcode::$shortcode_tags[$shortcode], $attributes, $matches[5], $shortcode) . $suffix;
|
// Check if this shortcode realy exists then call user function else return empty string
|
||||||
|
return (isset(Shortcode::$shortcode_tags[$shortcode])) ? $prefix . call_user_func(Shortcode::$shortcode_tags[$shortcode], $attributes, $matches[5], $shortcode) . $suffix : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@@ -230,6 +230,10 @@
|
|||||||
/**
|
/**
|
||||||
* Add's _1 to a string or increment the ending number to allow _2, _3, etc
|
* Add's _1 to a string or increment the ending number to allow _2, _3, etc
|
||||||
*
|
*
|
||||||
|
* <code>
|
||||||
|
* $str = Text::increment($str);
|
||||||
|
* </code>
|
||||||
|
*
|
||||||
* @param string $str String to increment
|
* @param string $str String to increment
|
||||||
* @param integer $first Start with
|
* @param integer $first Start with
|
||||||
* @param string $separator Separator
|
* @param string $separator Separator
|
||||||
|
@@ -58,7 +58,7 @@
|
|||||||
|
|
||||||
// Get all pages
|
// Get all pages
|
||||||
$pages_array = array();
|
$pages_array = array();
|
||||||
$pages_list = $pages->select('[slug!="error404" and parent="" and status="published" and access="public"]');
|
$pages_list = $pages->select('[slug!="error404" and parent="" and status="published"]');
|
||||||
foreach ($pages_list as $page) {
|
foreach ($pages_list as $page) {
|
||||||
$pages_array[$page['slug']] = Html::toText($page['title']);
|
$pages_array[$page['slug']] = Html::toText($page['title']);
|
||||||
}
|
}
|
||||||
|
@@ -33,7 +33,7 @@
|
|||||||
'Old password' => 'Vecchia password',
|
'Old password' => 'Vecchia password',
|
||||||
'New password' => 'Nuova password',
|
'New password' => 'Nuova password',
|
||||||
'Welcome' => 'Benvenuto',
|
'Welcome' => 'Benvenuto',
|
||||||
'Wrong <b>login</b> or <b>password</b>' => '<b>Login</b> o <b>password</b> errata',
|
'Wrong <b>username</b> or <b>password</b>' => '<b>username</b> o <b>password</b> errata',
|
||||||
'Your changes have been saved.' => 'Le modifiche sono state salvate.',
|
'Your changes have been saved.' => 'Le modifiche sono state salvate.',
|
||||||
'New user have been registered.' => 'Nuovo utente è stato registrato.',
|
'New user have been registered.' => 'Nuovo utente è stato registrato.',
|
||||||
'Captcha' => 'Codice captcha',
|
'Captcha' => 'Codice captcha',
|
||||||
|
@@ -33,7 +33,7 @@
|
|||||||
'Old password' => 'Старый пароль',
|
'Old password' => 'Старый пароль',
|
||||||
'New password' => 'Новый пароль',
|
'New password' => 'Новый пароль',
|
||||||
'Welcome' => 'Добро пожаловать',
|
'Welcome' => 'Добро пожаловать',
|
||||||
'Wrong <b>login</b> or <b>password</b>' => 'Неправильный <b>логин</b> или <b>пароль</b>',
|
'Wrong <b>username</b> or <b>password</b>' => 'Неправильный <b>логин</b> или <b>пароль</b>',
|
||||||
'Your changes have been saved.' => 'Ваши изменения были сохранены.',
|
'Your changes have been saved.' => 'Ваши изменения были сохранены.',
|
||||||
'New user have been registered.' => 'Новый пользователь был зарегистрирован.',
|
'New user have been registered.' => 'Новый пользователь был зарегистрирован.',
|
||||||
'Captcha' => 'Каптча',
|
'Captcha' => 'Каптча',
|
||||||
|
@@ -33,7 +33,7 @@
|
|||||||
'Old password' => 'Старий пароль',
|
'Old password' => 'Старий пароль',
|
||||||
'New password' => 'Новий пароль',
|
'New password' => 'Новий пароль',
|
||||||
'Welcome' => 'Ласкаво просимо',
|
'Welcome' => 'Ласкаво просимо',
|
||||||
'Wrong <b>login</b> or <b>password</b>' => 'Неправильний <b>логін</b> або <b>пароль</b>',
|
'Wrong <b>username</b> or <b>password</b>' => 'Неправильний <b>логін</b> або <b>пароль</b>',
|
||||||
'Your changes have been saved.' => 'Ваші зміни були збережені.',
|
'Your changes have been saved.' => 'Ваші зміни були збережені.',
|
||||||
'New user have been registered.' => 'Новий користувач був зареєстрований.',
|
'New user have been registered.' => 'Новий користувач був зареєстрований.',
|
||||||
'Captcha' => 'Каптча',
|
'Captcha' => 'Каптча',
|
||||||
|
@@ -393,11 +393,11 @@
|
|||||||
Session::set('user_role', (string)$user['role']);
|
Session::set('user_role', (string)$user['role']);
|
||||||
Request::redirect(Site::url().'users/'.Session::get('user_id'));
|
Request::redirect(Site::url().'users/'.Session::get('user_id'));
|
||||||
} else {
|
} else {
|
||||||
Notification::setNow('error', __('Wrong <b>login</b> or <b>password</b>', 'users'));
|
Notification::setNow('error', __('Wrong <b>username</b> or <b>password</b>', 'users'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Notification::setNow('error', __('Wrong <b>login</b> or <b>password</b>', 'users'));
|
Notification::setNow('error', __('Wrong <b>username</b> or <b>password</b>', 'users'));
|
||||||
}
|
}
|
||||||
|
|
||||||
} else { die('csrf detected!'); }
|
} else { die('csrf detected!'); }
|
||||||
|
Reference in New Issue
Block a user