diff options
Diffstat (limited to 'docs/skeleton/admin.php')
-rw-r--r-- | docs/skeleton/admin.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/skeleton/admin.php b/docs/skeleton/admin.php index 723c7f7612b..20df8a0c71d 100644 --- a/docs/skeleton/admin.php +++ b/docs/skeleton/admin.php @@ -29,12 +29,12 @@ $RUNTIME_NOSETUPFS = true; require_once('../lib/base.php'); // We need the file system although we said do not load it! Do it by hand now -OC_UTIL::setupFS(); +OC_Util::setupFS(); // The user should have admin rights. This is an admin page! -if( !OC_USER::isLoggedIn() || !OC_USER::ingroup( $_SESSION['username'], 'admin' )){ +if( !OC_User::isLoggedIn() || !OC_User::ingroup( $_SESSION['username'], 'admin' )){ // Bad boy! Go to the very first page of owncloud - header( "Location: ".OC_HELPER::linkTo( "index.php" )); + header( "Location: ".OC_Helper::linkTo( "index.php" )); exit(); } @@ -43,7 +43,7 @@ $myvar = 2; $myarray = array( "foo" => array( 0, 1, 2 ), "bar" => "baz" ); // Preparing for output! -$tmpl = new OC_TEMPLATE( "skeleton", "admin", "admin" ); // Programname, template, mode +$tmpl = new OC_Template( "skeleton", "admin", "admin" ); // Programname, template, mode // Assign the vars $tmpl->assign( "var", $myvar ); $tmpl->assign( "array", $myarray ); |