We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

My old Dreamweaver CS5 says admin.php has syntax error

Development and Programming

Riverboy's avatar
Riverboy
2,989 posts
9 years ago
Riverboy's avatar Riverboy

There is a line for system path (line 80) that my DW CS5 think its having a syntax error.

$system_path = $system_path ?: __DIR__;
       
FountainInternet's avatar
FountainInternet
53 posts
9 years ago
FountainInternet's avatar FountainInternet

Dreamweaver is wrong - this is a perfectly valid shorthand for the ternary operator. It’s equivalent to this ternary operator:

$system_path = $system_path ? $system_path : __DIR__;
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.