Fix a couple of minor coding errors
This commit is contained in:
parent
1df0397163
commit
0f494970d1
9 changed files with 17 additions and 17 deletions
|
@ -3,10 +3,10 @@
|
|||
OC_APP::register( array( "order" => 1, "id" => "admin", "name" => "Administration" ));
|
||||
if( OC_USER::ingroup( $_SESSION['username'], 'admin' ))
|
||||
{
|
||||
OC_UTIL::addNavigationEntry( array( "id" => "admin_index", "order" => 1, "href" => OC_HELPER::linkTo( "admin", "index.php" ), "icon" => OC_HELPER::imagePath( "admin", "navicon.png" ), "name" => "Administration" ));
|
||||
OC_APP::addNavigationEntry( array( "id" => "admin_index", "order" => 1, "href" => OC_HELPER::linkTo( "admin", "index.php" ), "icon" => OC_HELPER::imagePath( "admin", "navicon.png" ), "name" => "Administration" ));
|
||||
}
|
||||
OC_UTIL::addAdminPage( array( "order" => 1, "href" => OC_HELPER::linkTo( "admin", "system.php" ), "name" => "System settings" ));
|
||||
OC_UTIL::addAdminPage( array( "order" => 2, "href" => OC_HELPER::linkTo( "admin", "users.php" ), "name" => "Users" ));
|
||||
OC_UTIL::addAdminPage( array( "order" => 3, "href" => OC_HELPER::linkTo( "admin", "plugins.php" ), "name" => "Plugins" ));
|
||||
OC_APP::addAdminPage( array( "order" => 1, "href" => OC_HELPER::linkTo( "admin", "system.php" ), "name" => "System settings" ));
|
||||
OC_APP::addAdminPage( array( "order" => 2, "href" => OC_HELPER::linkTo( "admin", "users.php" ), "name" => "Users" ));
|
||||
OC_APP::addAdminPage( array( "order" => 3, "href" => OC_HELPER::linkTo( "admin", "plugins.php" ), "name" => "Plugins" ));
|
||||
|
||||
?>
|
||||
|
|
|
@ -30,7 +30,7 @@ if( !OC_USER::isLoggedIn() || !OC_USER::ingroup( $_SESSION['username'], 'admin'
|
|||
|
||||
$adminpages = array();
|
||||
|
||||
foreach( OC_UTIL::$adminpages as $i ){
|
||||
foreach( OC_APP::getAdminPages() as $i ){
|
||||
// Do some more work here soon
|
||||
$adminpages[] = $i;
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ if( !OC_USER::isLoggedIn() || !OC_USER::ingroup( $_SESSION['username'], 'admin'
|
|||
|
||||
$adminpages = array();
|
||||
|
||||
foreach( OC_UTIL::$adminpages as $i ){
|
||||
foreach( OC_APP::getAdminPages() as $i ){
|
||||
// Do some more work here soon
|
||||
$adminpages[] = $i;
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
OC_APP::register( array( "order" => 2, "id" => "files", "name" => "Files" ));
|
||||
|
||||
OC_UTIL::addNavigationEntry( array( "id" => "files_index", "order" => 1, "href" => OC_HELPER::linkTo( "files", "index.php" ), "icon" => OC_HELPER::imagePath( "files", "navicon.png" ), "name" => "Files" ));
|
||||
OC_UTIL::addAdminPage( array( "order" => 1, "href" => OC_HELPER::linkTo( "files", "admin.php" ), "name" => "Files" ));
|
||||
OC_APP::addNavigationEntry( array( "id" => "files_index", "order" => 1, "href" => OC_HELPER::linkTo( "files", "index.php" ), "icon" => OC_HELPER::imagePath( "files", "navicon.png" ), "name" => "Files" ));
|
||||
OC_APP::addAdminPage( array( "order" => 1, "href" => OC_HELPER::linkTo( "files", "admin.php" ), "name" => "Files" ));
|
||||
|
||||
?>
|
||||
|
|
|
@ -45,8 +45,8 @@ class OC_APP{
|
|||
global $SERVERROOT;
|
||||
|
||||
// Did we allready load everything?
|
||||
if( $self::init ){
|
||||
return true
|
||||
if( self::$init ){
|
||||
return true;
|
||||
}
|
||||
|
||||
// Get all appinfo
|
||||
|
@ -60,7 +60,7 @@ class OC_APP{
|
|||
}
|
||||
closedir( $dir );
|
||||
|
||||
$self::init = true;
|
||||
self::$init = true;
|
||||
|
||||
// return
|
||||
return true;
|
||||
|
|
|
@ -104,7 +104,7 @@ if( !$RUNTIME_NOSETUPFS ){
|
|||
}
|
||||
|
||||
// Add the stuff we need always
|
||||
OC_UTIL::addPersonalMenuEntry( array( "order" => 1000, "href" => OC_HELPER::linkTo( "", "index.php?logout=1" ), "name" => "Logout" ));
|
||||
OC_APP::addPersonalMenuEntry( array( "order" => 1000, "href" => OC_HELPER::linkTo( "", "index.php?logout=1" ), "name" => "Logout" ));
|
||||
OC_UTIL::addScript( "jquery-1.5.min" );
|
||||
OC_UTIL::addScript( "jquery-ui-1.8.10.custom.min" );
|
||||
OC_UTIL::addScript( "js" );
|
||||
|
|
|
@ -99,8 +99,8 @@ class OC_TEMPLATE{
|
|||
$template = "$SERVERROOT/$app/templates/";
|
||||
}
|
||||
|
||||
// Templates have the ending .tmpl
|
||||
$template .= "$name.html";
|
||||
// Templates have the ending .php
|
||||
$template .= "$name.php";
|
||||
|
||||
// Set the private data
|
||||
$this->renderas = $renderas;
|
||||
|
@ -206,7 +206,7 @@ class OC_TEMPLATE{
|
|||
|
||||
// Add navigation entry and personal menu
|
||||
$page->assign( "navigation", OC_APP::getNavigation());
|
||||
$page->assign( "personalmenu", OC_UTIL::getPersonalMenu());
|
||||
$page->assign( "personalmenu", OC_APP::getPersonalMenu());
|
||||
|
||||
// Add css files and js files
|
||||
$page->assign( "content", $data );
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
OC_APP::register( array( "order" => 1, "id" => "log", "name" => "Log" ));
|
||||
OC_UTIL::addPersonalMenuEntry( array( "order" => 2, "href" => OC_HELPER::linkTo( "log", "index.php" ), "name" => "Log" ));
|
||||
OC_APP::addPersonalMenuEntry( array( "order" => 2, "href" => OC_HELPER::linkTo( "log", "index.php" ), "name" => "Log" ));
|
||||
|
||||
?>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
OC_APP::register( array( "id" => "settings", "name" => "Settings" ));
|
||||
OC_UTIL::addPersonalMenuEntry( array( "order" => 1, "href" => OC_HELPER::linkTo( "settings", "index.php" ), "name" => "Settings" ));
|
||||
OC_APP::addPersonalMenuEntry( array( "order" => 1, "href" => OC_HELPER::linkTo( "settings", "index.php" ), "name" => "Settings" ));
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue