bugfixes, cleanup, usercp menu changes
This commit is contained in:
@ -309,7 +309,7 @@ class Plugin {
|
||||
$data = [];
|
||||
foreach( $this->resourceMatrix as $tableName => $entries ) {
|
||||
foreach ($ids as $id) {
|
||||
$data[] = self::$db->delete( $tableName, $id );
|
||||
$data[] = self::$db->delete( $tableName, [ 'ID', '=', $id ] );
|
||||
}
|
||||
}
|
||||
return $data;
|
||||
|
@ -36,7 +36,8 @@ class Usercp extends Controller {
|
||||
Redirect::home();
|
||||
}
|
||||
Template::noIndex();
|
||||
Navigation::activePageSelect( 'nav.usercp', null, true );
|
||||
$menu = Views::simpleView( 'nav.usercp', App::$userCPlinks );
|
||||
Navigation::activePageSelect( $menu, null, true, true );
|
||||
}
|
||||
|
||||
public function email() {
|
||||
|
@ -13,7 +13,6 @@
|
||||
namespace TheTempusProject\Models;
|
||||
|
||||
use TheTempusProject\Bedrock\Functions\Check;
|
||||
use TheTempusProject\Bedrock\Classes\Config;
|
||||
use TheTempusProject\Canary\Bin\Canary as Debug;
|
||||
use TheTempusProject\Canary\Classes\CustomException;
|
||||
use TheTempusProject\Classes\DatabaseModel;
|
||||
|
@ -14,7 +14,6 @@
|
||||
*/
|
||||
namespace TheTempusProject\Models;
|
||||
|
||||
use TheTempusProject\Bedrock\Classes\Config;
|
||||
use TheTempusProject\Bedrock\Functions\Check;
|
||||
use TheTempusProject\Canary\Bin\Canary as Debug;
|
||||
use TheTempusProject\Classes\DatabaseModel;
|
||||
|
@ -20,7 +20,6 @@ use TheTempusProject\Houdini\Classes\Views;
|
||||
|
||||
class Messages extends Plugin {
|
||||
public $pluginName = 'TP Messages';
|
||||
public $configName = 'messages';
|
||||
public $pluginAuthor = 'JoeyK';
|
||||
public $pluginWebsite = 'https://TheTempusProject.com';
|
||||
public $modelVersion = '1.0';
|
||||
|
@ -12,7 +12,6 @@
|
||||
*/
|
||||
namespace TheTempusProject\Models;
|
||||
|
||||
use TheTempusProject\Bedrock\Classes\Config;
|
||||
use TheTempusProject\Bedrock\Functions\Check;
|
||||
use TheTempusProject\Canary\Bin\Canary as Debug;
|
||||
use TheTempusProject\Classes\DatabaseModel;
|
||||
|
@ -20,7 +20,6 @@ use TheTempusProject\Houdini\Classes\Views;
|
||||
|
||||
class Notifications extends Plugin {
|
||||
public $pluginName = 'TP Notifications';
|
||||
public $configName = 'notifications';
|
||||
public $pluginAuthor = 'JoeyK';
|
||||
public $pluginWebsite = 'https://TheTempusProject.com';
|
||||
public $modelVersion = '1.0';
|
||||
|
@ -7,6 +7,6 @@
|
||||
</div>
|
||||
</div>
|
||||
{PERMISSIONS_FORM}
|
||||
<button name="submit" value="submit" type="submit" class="btn btn-lg btn-primary center-block">Edit</button>
|
||||
<button name="submit" value="submit" type="submit" class="btn btn-lg btn-primary center-block">Save</button>
|
||||
<input type="hidden" name="token" value="{TOKEN}">
|
||||
</form>
|
@ -1,7 +1,5 @@
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li><a href="{ROOT_URL}usercp">Profile</a></li>
|
||||
<li><a href="{ROOT_URL}usercp/settings">Settings</a></li>
|
||||
<li><a href="{ROOT_URL}usercp/email">Change Email</a></li>
|
||||
<li><a href="{ROOT_URL}usercp/password">Change Password</a></li>
|
||||
<li><a href="{ROOT_URL}messages">Messages</a></li>
|
||||
{LOOP}
|
||||
<li><a href="{url}">{name}</a></li>
|
||||
{/LOOP}
|
||||
</ul>
|
Reference in New Issue
Block a user